<!DOCTYPE html>
<html>
<head>
    <title>个人中心</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta content="no" name="apple-touch-fullscreen">
    <meta name="MobileOptimized" content="320"/>
    <meta name="format-detection" content="telephone=no">
    <meta name=apple-mobile-web-app-capable content=yes>
    <meta name=apple-mobile-web-app-status-bar-style content=black>
    <meta http-equiv="pragma" content="nocache">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">
    
    <link type="text/css" rel="stylesheet" href="/weixinpl/mshop/assets/css/amazeui.min.css" />
    <link type="text/css" rel="stylesheet" href="/weixinpl/mshop/css/order_css/global.css" />    

    <link type="text/css" rel="stylesheet" href="/weixinpl/mshop/css/css_<?php echo $skin ?>.css" /> 


    <!-- <link type="text/css" rel="stylesheet" href="./css/goods_css/dialog.css" /> -->
    <link type="text/css" rel="stylesheet" href="/weixinpl/mshop/css/self_dialog.css" />
    <link type="text/css" rel="stylesheet" href="/weixinpl/mshop/css/personal.css" />
    <link  rel="stylesheet"  type="text/css"  href="/weixinpl/common_shop/common/tc_erweima/css/tc_erweima.css">
	
    <style type="text/css">

		.am-modal-dialog{border-radius:5px;border:none;}
		.am-modal-dialog img{width:100%;height:100%;border-radius:5px;}
		.code-box{width: 80%;margin-left: 0;left: 10%;top: 8%;}
		@media screen and (max-width: 320px) and (max-height: 480px) {
			.code-box{width: 70%;margin-left: 0;left: 15%;top: 2%;}  /*兼容苹果四*/
		}
		.white-list ul{width: 100%;padding-left: 0;margin-bottom: 0;}
		.white-list ul li{width:50%;height:70px;float: left;border-top:1px solid #eee;border-right:1px solid #eee; list-style-type:none;background-color: #fff;}
		.white-list ul li:nth-child(even){border-right: none;}
		.white-list ul li img{width:35px;margin-top: 15px;margin-left: 15%;float: left;height:35px;position: center;}
		.white-list ul li span{margin-left: 10px;margin-top: 30px;line-height: 5;font-size: 14px;color:#494949;}
		body .white-list .list-one .center-content {vertical-align:sub}
        .area-one{position:relative;}
		.area-one img{width:20px;height:20px;}
		.white-list.dd i{display: block; width: 30px;height: 30px;margin:0 auto;background-image: url(./images/vic/icon_sprite.png);background-size: cover;}
        .cat_shop{background-position: 0 0;}
        .cat_pt{background-position: 0 -300px;}
        .cat_packages{background-position: 0 -270px;}
        .cat_pay{background-position: 0 -120px;}
        .cat_cater_t{background-position: 0 -210px;}
        .cat_cater_h{background-position: 0 -240px;}
        .cat_ktv_p{background-position: 0 -180px;}
        .cat_ktv_t{background-position: 0 -180px;}
        .cat_hotel_d{background-position: 0 -150px;}
        .cat_hotel_t{background-position: 0 -60px;}
        .cat_shop_off_t{background-position: 0 0;}
        .cat_shop_off_d{background-position: 0 -30px;}
        .white-list i{display: block; width: 50px;height: 50px;margin:0 auto;background-image: url(./images/info_image/wode_sprite.png);background-size: cover;}
        .wodeqianbao{background-position: 0 -200px;}
        .wodetequan{background-position: 0 -300px;}
        .wodedaoshi{background-position: 0 -508px;}
        .wodetuandui{background-position: 0 -400px;}
        .shouhuodizhi{background-position: 0 0;}
        .erweima{background-position: 0 -250px;}
        .wodeweidian{background-position: 0 -450px;}
        .wodedianpu{background-position: 0 -50px;}
        .leijishouyi{background-position: 0 -350px;}
        .wodeshequ{background-position: 0 -616px;}
        .wodef2c{background-position: 0 -658px;}
        .wodedinghuo{background-position: 0 -567px;}
		.wodereward{background-position: 0 -698px;}
		.signd{background-position: 0 -740px;}
		#middle-tab.fun-tab i{display: block; width: 50px;height: 50px;margin:0 auto;background-image: url(./images/info_image/gn_sprite.png);background-size: cover;}
		.wodezengsong{background-position: 0 4px;}
		.tuiguangpaihangbang{background-position: 0 -42px;}
		.sqzs{background-position: 0 -85px;}
		.azyy{background-position: 0 -131px;}
		.wdyj{background-position: 0 -179px;}
		.dplhb{background-position: 0 -227px;}
		.wdcs{background-position: 0 -274px;}
		.hykcs{background-position: 0 -131px;}
		.clh{background-position: 0 -131px;}
		.wgg{background-position: 0 -131px;}
		.yhq{background-position: 0 -131px;}
		.tbyd{background-position: 0 -371px;}
		.wmpsy{background-position: 0 -419px;}
		.xgyqr{background-position: 0 -321px;}
        /*ld 点击效果*/
        .button{ 
        	-webkit-transition-duration: 0.4s; /* Safari */
        	transition-duration: 0.4s;
        }

        .buttonclick:hover{
        	box-shadow:  0 0 5px 0 rgba(0,0,0,0.24);
        }
        .buttonclick_editBanner:hover{
        	box-shadow:  0 0 10px 0 rgba(0,0,0,0.24);
        }
        .numTips{
    position:absolute;display:inline-block;padding:0 4px;height:15px;border-radius:50px;background:red;color:#FFFFFF;text-align:center;font-size:12px;top:3px;line-height:15px;
		}
		.inform-fixed {position: absolute;top: 0;left: 0;width: 100%;background-color: rgba(0, 0, 0, 0.2);color: #ffffff;height: 25px;overflow: hidden; z-index: 666;display: none;}

    .inform-fixed p {line-height: 25px;font-size: 1.05rem;display: inline-block;vertical-align: middle;margin-left: 10px;width: calc(100% - 20px);text-overflow: ellipsis;white-space: nowrap;overflow: hidden;}

<?php if($template_type_bg==1){?>
	#myInfoDiv{
		background-image: url(<?php echo $template_head_bg?>)!important;
		background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center center;
	}

<?php }?>
		
		.fun-tab img {width: 30px !important; height: 30px !important; }
		.countdown{position: absolute;top: 10px;left: 0;width: 8%;height: 33px;line-height: 33px; background: rgba(255,255,255,.2);border-radius: 0 5px 5px 0;overflow: hidden;}
   		.countleft{float: left;width: 8px; margin: 11px 20% 0;}
   		.countright{float: left;font-size: 1rem;color: #fff;margin:0;}
		.countright .countday{font-size: 1.8rem; font-weight: 700;margin: 0 2px;}
		.hide{display:none;}
		.wenzi_color{width: 100%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}
		.countdown-red{background-color:rgba(250, 62, 62, 0.9);}
		.sign{ position: absolute;top: 50px;right: 0;height:40px;line-height: 32px;font-size:15px;text-align: right;background: rgba(255,255,255,.3); border-radius: 20px 0 0 20px;font-size: 0;}
		.signbox{background: #fff;height: 32px;border-radius: 20px 0 0 20px;margin-top: 4px;padding-left: 7px;margin-left: 4px;overflow: hidden;}
		.rightnow{display: inline-block;background: #fff;height: 32px;text-align: center;padding-right: 4px;font-size: 14px;vertical-align: top;}
		.rightnowright{display: inline-block;background: #fff;height: 32px;text-align: center;font-size: 14px;vertical-align: top;width: 11px;}
		.kongbairightnow{width: 4px;display: inline-block;background: #fff;height: 32px;vertical-align: top;}
		.fanzhuan{
			-webkit-transform: rotate(180deg);
			-ms-transform: rotate(180deg);
			-o-transform: rotate(180deg);
			transform: rotate(180deg);
		 }
   		.signed{display: none; position: absolute;top: 50px;right: 0;width: 75px;height:34px;line-height: 32px;font-size:15px;text-align: center;color:#fff;border:1px solid #fff;border-right: none; border-radius: 20px 0 0 20px;}
.sign-shade{background:rgba(0,0,0,0.73);width:100%;height:100%;position:fixed;top:0;left:0;z-index:99;display:none;}
.sign-alert{width:220px;margin:auto auto;z-index:100;text-align:center;position:fixed;top:30%;left:calc(50% - 110px);display:none;}
.sign-alert .sign-alert-top{background-repeat:no-repeat;background-size:100% 100%;background-image:url(./images/signalert-icon.png);width:100%;height:110px;position:absolute;top:0;left:0;z-index:2;}
.sign-alert .sign-alert-text{background-color:#ffffff;width:70%;margin:84px auto 14px auto;border-radius:4px;height:90px;overflow:hidden;}
.sign-alert .sign-alert-text p{margin-top:20px;line-height:70px;color:#888888;}
.sign-alert .sign-alert-btn{width:70%;line-height:30px;color:#ffffff;background-color:#fdd345;border-radius:4px;text-align:center;margin:0 auto;font-size:1.5rem;}
    </style>
	
		<!-- 自定义模板样式 START -->
	<link rel="stylesheet" type="text/css" href="/weixinpl/back_newshops/Base/personalization/personal_center/css/com.css">
	<link rel="stylesheet" type="text/css" href="/weixinpl/back_newshops/Base/personalization/personal_center/css/mod.css">
	<link rel="stylesheet" type="text/css" href="/weixinpl/back_newshops/Base/personalization/personal_center/css/custom.css">
	<link rel="stylesheet" type="text/css" href="/weixinpl/back_newshops/Base/personalization/personal_center/css/custom2.css">
	<link rel="stylesheet" type="text/css" href="/weixinpl/back_newshops/Base/personalization/personal_center/css/jquery-ui.css">
	<style type="text/css">
	/*蓝色*/
	.input_butn{margin-top:30%}
	.input_butn input{display:block;width:192px;background:#06a7e1;border:solid 1px #0b91c2;height:32px;line-height:30px;border-radius:3px;font-size:14px;color:#fff;}
	.input_butn input:hover{background:#017ca9;cursor:pointer;}
	.input_butn01 input{width:268px;}
	.leftA01 .leftA01_dl dd .tj{background:#07a7e1;border:solid 1px #0b91c2;color:#fff;}
	.leftA01 .leftA01_dl dd .tj:hover{background:#0b91c2;}
	.WSY_homeright .WSY_homeright_nav li .blueAA{background:#06a7e1;color:#fff;}
	.marquee{height:40px;line-height:40px;overflow:hidden;margin:0 auto;}
	.marquee ul{height:40px;line-height:40px;}
	.marquee ul li{padding:0 10px;line-height:40px;height:40px;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;}
	.input.xlarge{width:200px;}
	.imgnav-info{width:550px;}
	.search-input{width:150px;height: 18px;margin-right:0;}
	.search-input-btn{cursor: pointer;padding: 6px 11px;background: #3899eb;color: #FFFFFF;margin-left: 5px;vertical-align: top;border-radius: 3px;-webkit-border-radius:3px;-moz-border-radius:3px;border: none;}
	.colorpicker{z-index: 9}
	.num-input{width:100px;height:22px;line-height:22px;margin:0 10px;padding-left:5px;}

	.top-main01{width: 100%;position: relative;text-align: center;font-size: 13px;padding: 15px 17px;color:#FFF;box-sizing:border-box;}
    	.top-set{position: absolute;right: 17px;top: 14px;font-size: 13px;color:#FFF;}
    	.top-imgBox{text-align:center;width: 76px;height: 76px;line-height: 76px;background-color: #FFF;border-radius: 50%;display: inline-block;margin-bottom: 7px;overflow:hidden;}
        .top-userName{font-size: 19px;color:#FFF;margin-bottom:7px;}
        .top-info p{font-size:13px;color:#FFF;margin-bottom:7px;}
        .id-area01{font-size:14px;text-align:center;color:#FFF;display:flex;justify-content:center;align-items:center;}
		.id-area01 img {height: 15px;margin-left: 1%;}
        .id-area01 span{display:inline-block;padding-left: 5px;color:#FFF;margin-right:5px;}
        .top-imgBox img{width:100%;height:100%;}
        
        .top-main02{background-color: #FF9900;display: flex;padding: 20px 15px;font-size: 13px;align-items: center;position:relative;}
        .top-imgBox02{display: inline-block;background-color: #FFF;width: 60px;height: 60px;line-height: 60px;border: 2px solid rgba(255,255,255,0.5);border-radius: 5px;text-align: center;overflow: hidden;margin-right: 10px;flex-shrink: 0;overflow:hidden;}
        .top-imgBox02 img{width:100%;height:100%;}
        .top-name02{font-size: 16px;color:#FFF;}
        .top-info02 p{margin: 7px 0;color:#FFF;font-size:12px;}
        .arrow-right{position:absolute;top:40px;right:10px;width:12px;color:#FFF;}
        
        .top-main03{background-color: #fe8510;font-size: 13px;position:relative;padding-bottom:35px;}
        .top-main03 .top-imgBox{width:60px;height:60px;line-height:60px;}
        .top-mainInner{position: relative;display: flex;padding: 10px;align-items: center;}
        .top-info03{margin-left: 10px;font-size:12px;}
        .top-info03 p{margin: 3px 0;color:#FFF;}
        .top-status{position:absolute;bottom:0;left:0;background:rgba(255,255,255,0.1);width:100%;font-size:12px;color:#FFF;height:35px;line-height:35px;padding-left:15px;}
        
        .top-main04{width: 100%;background-color: #fe8510;position: relative;text-align: center;font-size: 13px;padding-top: 10px;padding-bottom:30px;}
        .top-main04 .id04{font-size:16px;color:#FFF;}
        .top-main04 .top-imgBox{width:55px;height:55px;line-height:55px;overflow:hidden;}
        .top-userName04{background: rgba(255,255,255,0.9);padding: 0 12px;border-radius: 15px;font-size: 12px;display: inline-block;color:#7b7b7b;height:17px;line-height:17px;}
        .top-status04{background-color: rgba(255,255,255,0.1);color: #803300;height:30px;line-height:30px;text-align:center;position:absolute;bottom:0;left:0;width:100%;color:#FFF;}
        .name04{position: absolute;top: 60px;text-align: center;width: 100%;}
        .top-info04{margin-top: 10px;font-size:12px;color:#FFF;}
        .top-info04 p{color:#FFF;margin-bottom:8px;}
        
        .topimg{width: 100%;height: 123px;}
        .top-set05{text-align: right;padding: 10px 8px 0 0;color:#FFF;}
        .top-main05{font-size: 12px;color: #FFF;position: relative;background-size:100% 100%;background-repeat:no-repeat;background-color:#FFF;}
        .status05 {display: flex;align-items: center;justify-content: center;height: 27px;font-size:12px;}
        .status05 span{color:#FFF;}
        .status05 img{width: 16;height:15px;margin: 0 3px 0 8px;}
        .head-img05{position: absolute;left: 0;width: 100%;text-align: center;top: 84px;}
        .head-content{width: 65px;height: 65px;background: #FFFFFF;border-radius: 50%;border: 2px solid rgba(255,255,255,0.5);margin: 0 auto;font-size: 12px;color: #000000;line-height: 65px;overflow:hidden;}
        .head-content img{width:100%;height:100%;}
        .name05{font-size: 15px;color: #333333;padding:41px 0 15px 0;text-align: center;}
			
			.back-img{background-size:100% 100%;}
			.head-delete{font-size:13px;background:rgba(0,0,0,0.6);width:100%;height:20px;line-height:20px;position:absolute;left:0;bottom:0;display:none;color:#FFF;}
			.add-img{position:relative;}
			.add-img:hover .head-delete{display:block;}
		
		.alert{ position:absolute;}
	</style>
	<!-- 自定义模板样式 END -->
    
</head>
<input type="hidden" name="is_openOrderMessage" id="is_openOrderMessage" value="<?php echo $is_openOrderMessage; ?>" />
<!-- Loading Screen -->
<div id='loading' class='loadingPop'style="display: none;"><img src='/weixinpl/mshop/images/loading.gif' style="width:40px;"/><p class=""></p></div>


<link type="text/css" rel="stylesheet" href="/weixinpl/mshop/css/basic.css" />

<body data-ctrl=true style="background:#f3f3f3;">
	<div class="inform-fixed">
        <p></p>
    </div>

	<div class="am-modal am-modal-confirm code-box" tabindex="-1" id="my-confirm">
	  <div class="am-modal-dialog" >
          <img src="//<?php echo $_SERVER['HTTP_HOST'];?>/weixinpl/common_shop/common/tc_erweima/tc_erweima2.php?customer_id=<?php echo $customer_id?>&user_id=<?php echo $user_id;?>">
	  </div>

	</div>
	
	<div class="order_message hide" id="order_message" style="background-color: rgba(0,0,0,0.7);border-radius: 30px;height:28px;position:fixed;top: 52px;left: 10px;z-index: 10;color: #ffffff;">
		<img style="width: 24px;height: 24px;border-radius: 50%;vertical-align: middle;margin:2px 3px;display: inline-block;" src="/weixinpl/mshop/images/dalibao.jpg"/>
		<p style="color: #ffffff;font-size: 12px;display: inline-block;margin: 0;vertical-align: middle;padding-right: 7px;"><span style="width:46px;display:inline-block;vertical-align:middle;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-right: 5px;color: #ffffff">瞪圆德惠</span><span style="display:inline-block;vertical-align:middle;color: #ffffff;">下了一笔订单</span><span style="display:inline-block;vertical-align:middle;margin-left: 5px;color: #ffffff;">5分钟前</span></p>
	</div>
		<!--div class="order_message hide" id="order_message" style="background-color: rgba(0,0,0,0.7);border-radius: 30px;height:28px;position:fixed;top: 52px;left: 10px;z-index: 10;color: #ffffff;">
		<img style="width: 24px;height: 24px;border-radius: 50%;vertical-align: middle;margin:2px 3px;display: inline-block;" src="/weixinpl/mshop/images/dalibao.jpg"/>
		<p style="color: #ffffff;font-size: 12px;display: inline-block;margin: 0;vertical-align: middle;padding-right: 7px;"><span style="width:46px;display:inline-block;vertical-align:middle;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-right: 5px;">瞪圆德惠</span><span style="display:inline-block;vertical-align:middle;">下了一笔订单</span><span style="display:inline-block;vertical-align:middle;margin-left: 5px;">5分钟前</span></p>
	</div-->
    
	<!-- 自定义模板 模块 START -->
	<div id="personalContent">
		<div class="WSY_main" style="background:<?php echo $bgcolor;?>"></div>
		<div class="WSY_main_foot" style="background:<?php echo $bgcolor;?>"></div>
		<!--订单显示-->
		<script  type="dot-template" id="type_con_21">
		<div class="con_display" {{? it.content.padding}}style="padding-top:{{= it.content.padding}}px;padding-bottom:{{= it.content.padding}}px"{{?}}>
		<div class="clearfix">
		{{ if(it.content.select_value == "商城订单"){ }}
			<?php 
                $sql="SELECT isAgent from promoters  WHERE user_id={$user_id} and customer_id={$customer_id} and isvalid = '1'";
                $re=_mysql_query($sql);
                $row=mysql_fetch_row($re);
                $is_tuanzhang=$row[0]['isAgent'];			
			if(in_array(array(1,1), $choose_exp_arr)){?>
			<div class="div-row type2" onclick="viewOrders('{{= it.content.select_value}}')">
				<div class="img">
				<img src="{{=it.content.icon_pic}}">
				</div>
				<p>{{=it.content.li_title}}</p>
			</div>
				<ul class="order-list">
				{{ for(var i=0,l=it.content.dataset.length;i<l;i++) { }}
					{{? it.content.dataset[i].title=="待付款"}}
						<li onclick="viewOrder('shop',2)"> 
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
							<?php if($wait_pay_count>0){ if($wait_pay_count>=100){ ?><span class="numTips">99+</span><?php }else{ ?><span class="numTips"><?php echo $wait_pay_count; ?></span><?php } }?>
						</div>
						<p>{{=it.content.dataset[i].title}}</p>
						</li>
					{{?}}
					{{? it.content.dataset[i].title=="待发货"}}
						<li onclick="viewOrder('shop',3)"> 
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
							<?php if($wait_send_count>0){ if($wait_send_count>=100){ ?><span class="numTips">99+</span><?php }else{ ?><span class="numTips"><?php echo $wait_send_count; ?></span><?php } }?>
						</div>
						<p>{{=it.content.dataset[i].title}}</p>
						</li>
					{{?}}
					{{? it.content.dataset[i].title=="待收货"}}
						<li onclick="viewOrder('shop',4)"> 
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
							<?php if($wait_accept_count>0){ if($wait_accept_count>=100){ ?><span class="numTips">99+</span><?php }else{ ?><span class="numTips"><?php echo $wait_accept_count; ?></span><?php } }?>
						</div>
						<p>{{=it.content.dataset[i].title}}</p>
						</li>
					{{?}}
					{{? it.content.dataset[i].title=="待评价"}}
						<li onclick="viewOrder('shop',5)"> 
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
							<?php if($wait_evaluate_count>0){ if($wait_evaluate_count>=100){ ?><span class="numTips">99+</span><?php }else{ ?><span class="numTips"><?php echo $wait_evaluate_count; ?></span><?php } }?>
						</div>
						<p>{{=it.content.dataset[i].title}}</p>
						</li>
					{{?}}
					{{? it.content.dataset[i].title=="售后中"}}
						<li onclick="viewOrder('shop',7)"> 
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
							<?php if($after_sale_count>0){ if($after_sale_count>=100){ ?><span class="numTips">99+</span><?php }else{ ?><span class="numTips"><?php echo $after_sale_count; ?></span><?php } }?>
						</div>
						<p>{{=it.content.dataset[i].title}}</p>
						</li>
					{{?}}
					
					<?php if($is_tuanzhang == 8) {
						 $sql="SELECT weixin_fromuser from weixin_users  WHERE id={$user_id} and customer_id={$customer_id} and isvalid = '1'";
						 $re = _mysql_query($sql);
						 $row=mysql_fetch_row($re);
						 $tz_url = $row[0];
					?>
					
					{{? i==4}}
						<li> 
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p><a href="http://user.huisuda.com.cn:8066/Mobile/Index?id=<?php echo $tz_url?>">团长中心</a></p>
						</li>
					{{?}}
					<?php }?>					
				{{ } }}
				<ul/>
			<?php } ?>
		{{ }else if(it.content.select_value == "订餐订单"){ }}
			<?php if(in_array(array(3,1), $choose_exp_arr)){?>
			<div class="div-row type2" onclick="viewOrders('{{= it.content.select_value}}')">
				<div class="img">
				<img src="{{=it.content.icon_pic}}">
				</div>
				<p>{{=it.content.li_title}}</p>
			</div>
				{{ console.log(it.content.dataset); }}
				<ul class="order-list">
				{{ for(var i=0,l=it.content.dataset.length;i<l;i++) { }}
					{{? it.content.select_value == "订餐订单" }}
						{{? it.content.dataset[i].title=="待付款"}}
							<li onclick="viewOrder('meishi',2)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="待确认"}}
							<li onclick="viewOrder('meishi',3)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="待使用"}}
							<li onclick="viewOrder('meishi',4)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="已完成"}}
							<li onclick="viewOrder('meishi',5)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="售后中"}}
							<li onclick="viewOrder('meishi',6)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
					{{?}}
					
				{{ } }}
				<ul/>
			<?php } ?>
		{{ }else if(it.content.select_value == "外卖订单"){ }}
			<?php if(in_array(array(5,1), $choose_exp_arr)){?>
			<div class="div-row type2" onclick="viewOrders('{{= it.content.select_value}}')">
				<div class="img">
				<img src="{{=it.content.icon_pic}}">
				</div>
				<p>{{=it.content.li_title}}</p>
			</div>
				<ul class="order-list">
				{{ for(var i=0,l=it.content.dataset.length;i<l;i++) { }}
					{{? it.content.dataset[i].title=="待付款"}}
							<li onclick="viewOrder('waimai',2)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="待发货"}}
							<li onclick="viewOrder('waimai',7)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="待收货"}}
							<li onclick="viewOrder('waimai',8)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="已完成"}}
							<li onclick="viewOrder('waimai',5)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="售后中"}}
							<li onclick="viewOrder('waimai',6)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
					
				{{ } }}
				<ul/>
			<?php } ?>
		{{ }else if(it.content.select_value == "KTV订单"){ }}
			<?php if(in_array(array(7,1), $choose_exp_arr)){?>
			<div class="div-row type2" onclick="viewOrders('{{= it.content.select_value}}')">
				<div class="img">
				<img src="{{=it.content.icon_pic}}">
				</div>
				<p>{{=it.content.li_title}}</p>
			</div>
				<ul class="order-list">
				{{ for(var i=0,l=it.content.dataset.length;i<l;i++) { }}
					{{? it.content.dataset[i].title=="待付款"}}
							<li onclick="viewOrder('ktv',2)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="待使用"}}
							<li onclick="viewOrder('ktv',3)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="待评价"}}
							<li onclick="viewOrder('ktv',4)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="已完成"}}
							<li onclick="viewOrder('ktv',5)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="售后中"}}
							<li onclick="viewOrder('ktv',6)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
					
				{{ } }}
				<ul/>
			<?php } ?>
			{{ }else if(it.content.select_value == "酒店订单"){ }}
			<?php if(in_array(array(9,1), $choose_exp_arr)){?>
			<div class="div-row type2" onclick="viewOrders('{{= it.content.select_value}}')">
				<div class="img">
				<img src="{{=it.content.icon_pic}}">
				</div>
				<p>{{=it.content.li_title}}</p>
			</div>
				<ul class="order-list">
				{{ for(var i=0,l=it.content.dataset.length;i<l;i++) { }}
					{{? it.content.dataset[i].title=="待付款"}}
							<li onclick="viewOrder('hotel',2)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="待确认"}}
							<li onclick="viewOrder('hotel',3)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="待使用"}}
							<li onclick="viewOrder('hotel',4)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="已完成"}}
							<li onclick="viewOrder('hotel',5)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="售后中"}}
							<li onclick="viewOrder('hotel',6)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
					
				{{ } }}
				<ul/>
			<?php } ?>
			{{ }else if(it.content.select_value == "线下商城-自提订单"){ }}
			<?php if(in_array(array(13,1), $choose_exp_arr)){
				$cityarea_shop_order_count = $count_orders_num->count_cityarea_shop_order($customer_id,$user_id);
			?>
			<div class="div-row type2" onclick="viewOrders('{{= it.content.select_value}}')">
				<div class="img">
				<img src="{{=it.content.icon_pic}}">
				</div>
				<p>{{=it.content.li_title}}</p>
			</div>
				<ul class="order-list">
				{{ for(var i=0,l=it.content.dataset.length;i<l;i++) { }}
					{{? it.content.dataset[i].title=="待付款"}}
							<li onclick="viewOrder('cityshop',2)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
								<?php if($cityarea_shop_order_count['ncount1'] > 0){ ?>
									<span class="numTips"><?php echo $cityarea_shop_order_count['ncount1']; ?></span>
								<?php } ?>
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="待确认"}}
							<li onclick="viewOrder('cityshop',3)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
								<?php if($cityarea_shop_order_count['ncount2'] > 0){ ?>
									<span class="numTips"><?php echo $cityarea_shop_order_count['ncount2']; ?></span>
								<?php } ?>
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="待消费"}}
							<li onclick="viewOrder('cityshop',4)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
								<?php if($cityarea_shop_order_count['ncount3'] > 0){ ?>
									<span class="numTips"><?php echo $cityarea_shop_order_count['ncount3']; ?></span>
								<?php } ?>
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="待评价"}}
							<li onclick="viewOrder('cityshop',5)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
								<?php if($cityarea_shop_order_count['ncount4'] > 0){ ?>
									<span class="numTips"><?php echo $cityarea_shop_order_count['ncount4']; ?></span>
								<?php } ?>
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="售后中"}}
							<li onclick="viewOrder('cityshop',6)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
								<?php if($cityarea_shop_order_count['ncount5'] > 0){ ?>
									<span class="numTips"><?php echo $cityarea_shop_order_count['ncount5']; ?></span>
								<?php } ?>
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
					
				{{ } }}
				<ul/>
			<?php } ?>
			{{ }else if(it.content.select_value == "线下商城-配送订单"){ }}
			<?php if(in_array(array(15,1), $choose_exp_arr)){
					$cityarea_shop_order_take_count = $count_orders_num->count_cityarea_shop_order_take($customer_id,$user_id);
			?>
			<div class="div-row type2" onclick="viewOrders('{{= it.content.select_value}}')">
				<div class="img">
				<img src="{{=it.content.icon_pic}}">
				</div>
				<p>{{=it.content.li_title}}</p>
			</div>
				<ul class="order-list">
				{{ for(var i=0,l=it.content.dataset.length;i<l;i++) { }}
					{{? it.content.dataset[i].title=="待付款"}}
							<li onclick="viewOrder('cityshop_take',12)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
								<?php if($cityarea_shop_order_take_count['ncount1'] > 0){ ?>
									<span class="numTips"><?php echo $cityarea_shop_order_take_count['ncount1']; ?></span>
								<?php } ?>
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="待发货"}}
							<li onclick="viewOrder('cityshop_take',13)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
								<?php if($cityarea_shop_order_take_count['ncount2'] > 0){ ?>
									<span class="numTips"><?php echo $cityarea_shop_order_take_count['ncount2']; ?></span>
								<?php } ?>
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="待收货"}}
							<li onclick="viewOrder('cityshop_take',14)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
								<?php if($cityarea_shop_order_take_count['ncount3'] > 0){ ?>
									<span class="numTips"><?php echo $cityarea_shop_order_take_count['ncount3']; ?></span>
								<?php } ?>
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="待评价"}}
							<li onclick="viewOrder('cityshop_take',15)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
								<?php if($cityarea_shop_order_take_count['ncount4'] > 0){ ?>
									<span class="numTips"><?php echo $cityarea_shop_order_take_count['ncount4']; ?></span>
								<?php } ?>
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="售后中"}}
							<li onclick="viewOrder('cityshop_take',16)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
								<?php if($cityarea_shop_order_take_count['ncount5'] > 0){ ?>
									<span class="numTips"><?php echo $cityarea_shop_order_take_count['ncount5']; ?></span>
								<?php } ?>
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
					
				{{ } }}
				<ul/>
			<?php } ?>
			{{ }else if(it.content.select_value == "线下商城-社区订单"){ }}
			<?php if(in_array(array(26,1), $choose_exp_arr)){
				$cityarea_shop_order_community_count = $count_orders_num->count_cityarea_shop_order_community($customer_id,$user_id);
			?>
			<div class="div-row type2" onclick="viewOrders('{{= it.content.select_value}}')">
				<div class="img">
				<img src="{{=it.content.icon_pic}}">
				</div>
				<p>{{=it.content.li_title}}</p>
			</div>
				<ul class="order-list">
				{{ for(var i=0,l=it.content.dataset.length;i<l;i++) { }}
					{{? it.content.dataset[i].title=="待付款"}}
							<li onclick="viewOrder('cityshop_community',12)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
								<?php if($cityarea_shop_order_community_count['ncount1'] > 0){ ?>
									<span class="numTips"><?php echo $cityarea_shop_order_community_count['ncount1']; ?></span>
								<?php } ?>
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="待发货"}}
							<li onclick="viewOrder('cityshop_community',13)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
								<?php if($cityarea_shop_order_community_count['ncount2'] > 0){ ?>
									<span class="numTips"><?php echo $cityarea_shop_order_community_count['ncount2']; ?></span>
								<?php } ?>
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="待收货"}}
							<li onclick="viewOrder('cityshop_community',14)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
								<?php if($cityarea_shop_order_community_count['ncount3'] > 0){ ?>
									<span class="numTips"><?php echo $cityarea_shop_order_community_count['ncount3']; ?></span>
								<?php } ?>
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="已完成"}}
							<li onclick="viewOrder('cityshop_community',15)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
								<?php if($cityarea_shop_order_community_count['ncount4'] > 0){ ?>
									<span class="numTips"><?php echo $cityarea_shop_order_community_count['ncount4']; ?></span>
								<?php } ?>
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="售后中"}}
							<li onclick="viewOrder('cityshop_community',16)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
								<?php if($cityarea_shop_order_community_count['ncount5'] > 0){ ?>
									<span class="numTips"><?php echo $cityarea_shop_order_community_count['ncount5']; ?></span>
								<?php } ?>
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
					
				{{ } }}
				<ul/>
			<?php } ?>
			{{ }else if(it.content.select_value == "金融订单"){ }}
			<?php if(in_array(array(25,1), $choose_exp_arr)){?>
			<div class="div-row type2" onclick="viewOrders('{{= it.content.select_value}}')">
				<div class="img">
				<img src="{{=it.content.icon_pic}}">
				</div>
				<p>{{=it.content.li_title}}</p>
			</div>
				<ul class="order-list">
				{{ for(var i=0,l=it.content.dataset.length;i<l;i++) { }}
					{{? it.content.dataset[i].title=="未确认"}}
							<li onclick="viewOrder('finance',0)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="已确认"}}
							<li onclick="viewOrder('finance',1)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="已取消"}}
							<li onclick="viewOrder('finance',2)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="已支付"}}
							<li onclick="viewOrder('finance',3)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="未支付"}}
							<li onclick="viewOrder('finance',4)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
					
				{{ } }}
				<ul/>
			<?php } ?>
			{{ }else if(it.content.select_value == "教练服务订单"){ }}
			<?php if(in_array(array(28,1), $choose_exp_arr)){?>
			<div class="div-row type2" onclick="viewOrders('{{= it.content.select_value}}')">
				<div class="img">
				<img src="{{=it.content.icon_pic}}">
				</div>
				<p>{{=it.content.li_title}}</p>
			</div>
				<ul class="order-list">
				{{ for(var i=0,l=it.content.dataset.length;i<l;i++) { }}
					{{? it.content.dataset[i].title=="待接单"}}
							<li onclick="viewOrder('coach',1)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="进行中"}}
							<li onclick="viewOrder('coach',2)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="待评价"}}
							<li onclick="viewOrder('coach',3)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
						{{? it.content.dataset[i].title=="已完成"}}
							<li onclick="viewOrder('coach',4)"> 
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p>{{=it.content.dataset[i].title}}</p>
							</li>
						{{?}}
					
				{{ } }}
				<ul/>
			<?php } ?>
			{{ }else if(it.content.select_value == "线下收银订单"){ }}
			<?php if(in_array(array(19,1), $choose_exp_arr)){?>
			<div class="div-row type2" onclick="viewOrders('{{= it.content.select_value}}')">
				<div class="img">
				<img src="{{=it.content.icon_pic}}">
				</div>
				<p>{{=it.content.li_title}}</p>
			</div>
				<ul class="order-list">
				{{ for(var i=0,l=it.content.dataset.length;i<l;i++) { }}
					{{? it.content.dataset[i].title=="优惠买单"}}
						<li onclick="viewOrder('nowpayOrder',1)"> 
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p>{{=it.content.dataset[i].title}}</p>
						</li>
					{{?}}
					{{? it.content.dataset[i].title=="代金券"}}
						<li onclick="viewOrder('nowpayOrder',2)"> 
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p>{{=it.content.dataset[i].title}}</p>
						</li>
					{{?}}
					{{? it.content.dataset[i].title=="套餐"}}
						<li onclick="viewOrder('nowpayOrder',3)"> 
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p>{{=it.content.dataset[i].title}}</p>
						</li>
					{{?}}
					
				{{ } }}
				<ul/>
			<?php } ?>
			{{ }else if(it.content.select_value == "到店付订单"){ }}
			<?php if(in_array(array(21,1), $choose_exp_arr)){
					$cityarea_pay_order_count = $count_orders_num->count_cityarea_pay_order($customer_id,$user_id);
			?>
			<div class="div-row type2" onclick="viewOrders('{{= it.content.select_value}}')">
				<div class="img">
				<img src="{{=it.content.icon_pic}}">
				</div>
				<p>{{=it.content.li_title}}</p>
			</div>
				<ul class="order-list">
				{{ for(var i=0,l=it.content.dataset.length;i<l;i++) { }}
					{{? it.content.dataset[i].title=="全部"}}
						<li onclick="viewOrder('pay',1)"> 
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
							<?php if($cityarea_pay_order_count['ncount1'] > 0){ ?>
								<span class="numTips"><?php echo $cityarea_pay_order_count['ncount1']; ?></span>
							<?php } ?>
						</div>
						<p>{{=it.content.dataset[i].title}}</p>
						</li>
					{{?}}
					{{? it.content.dataset[i].title=="已完成"}}
						<li onclick="viewOrder('pay',2)"> 
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
							<?php if($cityarea_pay_order_count['ncount2'] > 0){ ?>
								<span class="numTips"><?php echo $cityarea_pay_order_count['ncount2']; ?></span>
							<?php } ?>
						</div>
						<p>{{=it.content.dataset[i].title}}</p>
						</li>
					{{?}}
					{{? it.content.dataset[i].title=="售后中"}}
						<li onclick="viewOrder('pay',4)"> 
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
							<?php if($cityarea_pay_order_count['ncount3'] > 0){ ?>
								<span class="numTips"><?php echo $cityarea_pay_order_count['ncount3']; ?></span>
							<?php } ?>
						</div>
						<p>{{=it.content.dataset[i].title}}</p>
						</li>
					{{?}}
					
				{{ } }}
				<ul/>
			<?php } ?>
			{{ }else if(it.content.select_value == "艺人订单"){ }}
			<?php if(in_array(array(29,1), $choose_exp_arr)){?>
			<div class="div-row type2" onclick="viewOrders('{{= it.content.select_value}}')">
				<div class="img">
				<img src="{{=it.content.icon_pic}}">
				</div>
				<p>{{=it.content.li_title}}</p>
			</div>
				<ul class="order-list">
				{{ for(var i=0,l=it.content.dataset.length;i<l;i++) { }}
					{{? it.content.dataset[i].title=="全部"}}
						<li onclick="viewOrder('yiren',0)"> 
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p>{{=it.content.dataset[i].title}}</p>
						</li>
					{{?}}
					{{? it.content.dataset[i].title=="待接单"}}
						<li onclick="viewOrder('yiren',1)"> 
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p>{{=it.content.dataset[i].title}}</p>
						</li>
					{{?}}
					{{? it.content.dataset[i].title=="已接单"}}
						<li onclick="viewOrder('yiren',2)"> 
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p>{{=it.content.dataset[i].title}}</p>
						</li>
					{{?}}
					{{? it.content.dataset[i].title=="待评价"}}
						<li onclick="viewOrder('yiren',3)"> 
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p>{{=it.content.dataset[i].title}}</p>
						</li>
					{{?}}
					{{? it.content.dataset[i].title=="退款中"}}
						<li onclick="viewOrder('yiren',4)"> 
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p>{{=it.content.dataset[i].title}}</p>
						</li>
					{{?}}
				{{ } }}
				<ul/>
			<?php } ?>
			{{ }else if(it.content.select_value == "大礼包订单"){ }}
			<?php if(in_array(array(18,1), $choose_exp_arr)){?>
			<div class="div-row" onclick="viewOrders('{{= it.content.select_value}}')">
				<div class="img">
				<img src="{{=it.content.icon_pic}}">
				</div>
				<p>{{=it.content.li_title}}</p>
			</div>
			<?php } ?>
			{{ }else if(it.content.select_value == "票务订单"){ }}
			<?php if(in_array(array(24,1), $choose_exp_arr)){?>
			<div class="div-row" onclick="viewOrders('{{= it.content.select_value}}')">
				<div class="img">
				<img src="{{=it.content.icon_pic}}">
				</div>
				<p>{{=it.content.li_title}}</p>
			</div>
			<?php } ?>
			{{ }else{ }}
			<div class="div-row" onclick="viewOrders('{{= it.content.select_value}}')">
				<div class="img">
				<img src="{{=it.content.icon_pic}}">
				</div>
				<p>{{=it.content.li_title}}</p>
			</div>
			{{ } }}
			
		</div>
		</div>
		</script>
		<!--订单显示一-->
		
		<!--订单模块二-->
		<script  type="dot-template" id="type_con_24">
		<div class="con_display" {{? it.content.padding}}style="padding-top:{{= it.content.padding}}px;padding-bottom:{{= it.content.padding}}px"{{?}}>

			{{ for(var i=0,l=it.content.dataset.length;i<l;i++) { }}
				<div class="div-row" onclick="viewOrders('{{= it.content.dataset[i].select_value}}')">
					<div class="img">
					<img src="{{=it.content.dataset[i].pic}}">
					</div>
					<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
				</div>  
			{{ } }}

		</div>
		</script>
		<!--订单模块二-->
		
		<!--数据模块-->
		<script  type="dot-template" id="type_con_22">
		<div class="con_display" {{? it.content.padding}}style="padding-top:{{= it.content.padding}}px;padding-bottom:{{= it.content.padding}}px"{{?}}>
			{{? it.content.css_type==2}}
			{{ for(var i=0,l=it.content.dataset.length;i<l;i++) { }}
				<div class="div-row" onclick="viewRecord('{{= it.content.dataset[i].select_value}}')">
					<div class="img">
					<img src="{{=it.content.dataset[i].pic}}">
					</div>
					<?php $num_show = ""; ?>
					{{? it.content.dataset[i].select_value=='零钱'}}
						<?php $num_show = $balance; ?>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}} <span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span></p>
					{{?}}
					{{? it.content.dataset[i].select_value=='会员卡积分'}}
						<?php $num_show = $remain_score; ?>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}} <span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span></p>
					{{?}}
					{{? it.content.dataset[i].select_value=='会员卡余额'}}
						<?php if($remain_consume == null || $remain_consume == "" || $remain_consume == "undefined"){$remain_consume = 0;}
						$num_show = $remain_consume; ?>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}} <span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span></p>
					{{?}}
					{{? it.content.dataset[i].select_value=='消费总额'}}
						<?php $num_show = $totalprice;?>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}} <span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span></p>
					{{?}}
					{{? it.content.dataset[i].select_value=='购物币'}}
						<?php $num_show = $currency;?>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}} <span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span></p>
					{{?}}
					{{? it.content.dataset[i].select_value=='优惠券'}}
						<?php $num_show = $coupon_num;?>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}} <span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span></p>
					{{?}}
					{{? it.content.dataset[i].select_value=='分享卡'}}
						<?php $num_show = $num1+$num2;?>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}} <span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span></p>
					{{?}}
					{{? it.content.dataset[i].select_value=='红积分'}}
						<?php $num_show = $my_red_score;?>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}} <span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span></p>
					{{?}}
					{{? it.content.dataset[i].select_value=='红包'}}
						<?php $num_show = $hongbao_num;?>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}} <span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span></p>
					{{?}}
					{{? it.content.dataset[i].select_value=='商城积分'}}
						<?php $num_show = $ji_integral;?>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}} <span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span></p>
					{{?}}
					{{? it.content.dataset[i].select_value=='我的足迹'}}
						<?php $num_show = "";?>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}} <span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span></p>
					{{?}}
					{{? it.content.dataset[i].select_value=='我的收藏'}}
						<?php $num_show = "";?>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}} <span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span></p>
					{{?}}
					{{? it.content.dataset[i].select_value=='排队奖励'}}
						<?php $num_show = $my_queue_num;?>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}} <span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span></p>
					{{?}}
				</div>  
			{{ } }}
			
			{{?? it.content.css_type==1}}
				
				<ul class="data-list">
					{{ for(var i=0,l=it.content.dataset.length;i<l;i++) { }}
					<li onclick="viewRecord('{{= it.content.dataset[i].select_value}}')">
						<?php $num_show = ""; ?>
						{{? it.content.dataset[i].select_value=='零钱'}}
							<?php $num_show = $balance; ?>
							<span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span>
							<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
							
						{{?}}
						{{? it.content.dataset[i].select_value=='会员卡积分'}}
							<?php $num_show = $remain_score; ?>
							<span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span>
							<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
						{{?}}
						{{? it.content.dataset[i].select_value=='会员卡余额'}}
							<?php $num_show = $remain_consume;  ?>
							<span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span>
							<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
						{{?}}
						{{? it.content.dataset[i].select_value=='消费总额'}}
							<?php $num_show = $totalprice;?>
							<span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span>
							<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
						{{?}}
						{{? it.content.dataset[i].select_value=='购物币'}}
							<?php $num_show = $currency;?>
							<span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span>
							<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
						{{?}}
						{{? it.content.dataset[i].select_value=='优惠券'}}
							<?php $num_show = $coupon_num;?>
							<span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span>
							<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
						{{?}}
						{{? it.content.dataset[i].select_value=='分享卡'}}
							<?php $num_show = $num1+$num2;?>
							<span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span>
							<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
						{{?}}
						{{? it.content.dataset[i].select_value=='红积分'}}
							<?php $num_show = $my_red_score;?>
							<span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span>
							<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
						{{?}}
						{{? it.content.dataset[i].select_value=='红包'}}
							<?php $num_show = $hongbao_num;?>
							<span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span>
							<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
						{{?}}
						{{? it.content.dataset[i].select_value=='商城积分'}}
							<?php $num_show = $ji_integral;?>
							<span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span>
							<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
						{{?}}
						{{? it.content.dataset[i].select_value=='我的足迹'}}
							<?php $num_show = $visit_rcount;?>
							<span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span>
							<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
						{{?}}
						{{? it.content.dataset[i].select_value=='我的收藏'}}
							<?php $num_show = $collect_rcount;?>
							<span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span>
							<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
						{{?}}
						{{? it.content.dataset[i].select_value=='排队奖励'}}
							<?php $num_show = $my_queue_num;?>
							<span style="color:{{=it.content.dataset[i].color1}}"><?php echo $num_show; ?></span>
							<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
						{{?}}
					
					</li>
					{{ } }}
				</ul>
				
			{{??}}
		{{?}}
		</div>
		</script>
		<!--数据模块-->
		<!--功能模块-->
		<script  type="dot-template" id="type_con_23">
		<div class="con_display" {{? it.content.padding}}style="padding-top:{{= it.content.padding}}px;padding-bottom:{{= it.content.padding}}px"{{?}}>
		{{? it.content.css_type==1}}
			
			<ul class="fun-list line{{= it.content.data_num}}">
				{{ for(var i=0,l=it.content.dataset.length;i<l;i++) { }}
					{{ if(it.content.dataset[i].select_value == '店铺龙虎榜'){ }}
					<?php if( $openbillboard == 1 && $promoter_id > 0){ ?>
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					<?php } ?>
				{{ }else if(it.content.dataset[i].select_value == '我的旅游卡'){ }}  
					<?php if( $is_travel_card==1 &&$is_travelcard==1 ) { ?>
						<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
							<img src="{{=it.content.dataset[i].pic}}">
							<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
						</li>
					<?php } ?>
				{{ }else if(it.content.dataset[i].select_value == '旅游卡办卡首页'){ }}
				<?php if( $is_travel_card==1&&$is_travelcard==1 ) { ?>
				<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
					<img src="{{=it.content.dataset[i].pic}}">
					<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
				</li>
				<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '我的慈善'){ }}
					<?php if( $is_charitable==1 ) { ?>
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '我的特权'){ }}
					<?php if($is_open_privilege==1){?>
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '我的导师'){ }}
					<?php if($is_myteacher==1){?>
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '我的团队'){ }}
					<?php if( $status > 0 ){?>
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '累积收益'){ }}
					<?php if($isOpenreward && $status > 0){?>
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '二维码'){ }}
					<?php if( $is_qr_code==1 &&  $status > 0 ){?>
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '我的微店'){ }}
					<?php if( $status > 0 && $is_microshop > 0 ){?><!--推广员才显示--> 
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '我的店铺'){ }}
					<?php if( $isAgent == 3 ){?><!--供应商才显示-->
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '社区微店'){ }}
					<?php if($is_Openretail == 1 && $city_supply_id>0){ //渠道开启社区代理并且用户成为社区代理?>
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '订货系统'){ }}
					<?php if($is_open_orderingretail >0 && $is_proxy>0 && $or_id > 0){ ?>
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == 'F2C店'){ }}
					<?php if( $status>0 && $f2c_account_id > 0 && $isopen_f == true && $is_f2c>0){ ?>
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '奖励报表'){ }}
					<?php if( $is_shareholder_bonus_reward == 1 && $is_consume > 0 ){ ?>
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '我的赠送'){ }}
					<?php  if($is_cashback==1){?>
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '推广排行榜'){ }}
					<?php if( $promoter_id > 0 && $is_open_promoter_ranking ){ ?>
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '授权证书'){ }}
					<?php if( $is_certificate == 1 and $promoter_id > 0){ ?>
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '头部引导'){ }}
					<?php if( $diy_content_id > 0){ ?>
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					<?php } ?>
					<?php if($slyder_is_open == 1){ ?>
						{{ }else if(it.content.dataset[i].select_value == '大转盘'){ }}
						<?php if( $slyder_is_display_person_center == 1){ ?>
						<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
							<img src="{{=it.content.dataset[i].pic}}">
							<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
						</li>
						<?php } ?>
						{{ }else if(it.content.dataset[i].select_value == '中奖纪录'){ }}
						<?php if( $slyder_is_display_my_records == 1){ ?>
						<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
							<img src="{{=it.content.dataset[i].pic}}">
							<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
						</li>
						<?php } ?>
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '外卖配送'){ }}
					<?php if($courier_id > 0) { ?>
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '安装预约'){ }}
					<?php 
					$sql = "select `isOpenInstall` from `weixin_commonshops` where `isvalid` = true and `customer_id` = $customer_id limit 1";
					$result = _mysql_query($sql);
					$row = mysql_fetch_array($result);
					$isOpenInstall = $row['isOpenInstall'];
					if($isOpenInstall == 1)
					{
					?>
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '修改邀请人'){ }}
					<?php if( $is_modify_up ==1 and $has_change == 0){ ?>
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					<?php } ?>

					{{ }else if(it.content.dataset[i].select_value == '我的佣金'){ }}
					<?php if( $is_my_commission == 1 && $promoter_id > 0){ ?>
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					<?php } ?>
					<?php 
						//自定义功能
                        $imgurl ='';
                    while ($row_c = mysql_fetch_object($result_custom)) {
                        $cs_id = $row_c->id;
                        $subscribe_id = $row_c->subscribe_id;
                        $need_score = $row_c->need_score;
                        $imgurl =$row_c->imgurl;                        
                        if($imgurl == '' ){

                            $imgurl='/weixinpl/mshop/images/info_image/function.png';
                        }                       
                        $imgurl = $new_baseurl.$imgurl;
                        $query = "SELECT id,title,website_url,coupon_id FROM weixin_subscribes where  id=".$subscribe_id;
                        $result = _mysql_query($query) or die('Query failed: ' . mysql_error());
                        $website_url="";
                        $title="";
                        while ($row = mysql_fetch_object($result)) {
                            $website_url = $row->website_url;
                            $title = $row->title;
                            $coupon_id = $row->coupon_id;
                        }
						if($coupon_id>0){
							continue;
						}
                        $pos = strpos($website_url,"?"); 
                        if($pos>0){
                            $website_url = $website_url."&C_id=".$customer_id."&fromuser=".$weixin_fromuser;
                        }else{
                            $website_url = $website_url."?C_id=".$customer_id."&fromuser=".$weixin_fromuser;
                        }
                        $mppos= strstr($title,"{weixin_title}");
                        if(!empty($mppos)){
                            $title = str_replace("{weixin_title}",$weixin_name,$title);
                        }
                            $mppos= strstr($title,"{weixin_parent_title}");
                        if(!empty($mppos) and $parent_id>0){
                            $query="select weixin_name from weixin_users where  isvalid=true and id=".$parent_id." limit 0,1";
                            $result = _mysql_query($query) or die('Query failed: ' . mysql_error());
                            $parent_weixin_name="";
                            while ($row = mysql_fetch_object($result)) {
                                $parent_weixin_name = $row->weixin_name;
                            }
                                $title = str_replace("{weixin_parent_title}",$parent_weixin_name,$title);
                        }
                ?>
					{{ }else if(it.content.dataset[i].select_value == '<?php echo $title;?>'){ }}
					<li onclick='goPage("<?php echo $website_url?>")'>
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
                <?php }?>
					
					{{ }else{ }}
					<li onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<img src="{{=it.content.dataset[i].pic}}">
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</li>
					{{ } }}
				{{ } }}
				
			</ul>
			
			
			{{?? it.content.css_type==2}}
				{{ for(var i=0,l=it.content.dataset.length;i<l;i++) { }}
				{{ if(it.content.dataset[i].select_value == '店铺龙虎榜'){ }}
					<?php if( $openbillboard == 1 && $promoter_id > 0){ ?>
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '我的慈善'){ }}
					<?php if( $is_charitable==1 ) { ?>
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '我的旅游卡'){ }}
					<?php if($is_travel_card==1&&$is_travelcard==1){?>
						<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
							<div class="img">
								<img src="{{=it.content.dataset[i].pic}}">
							</div>
							<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
						</div>
					<?php } ?>
			{{ }else if(it.content.dataset[i].select_value == '旅游卡办卡首页'){ }}
			<?php if($is_travel_card==1&&$is_travelcard==1){?>
			<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
				<div class="img">
					<img src="{{=it.content.dataset[i].pic}}">
				</div>
				<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
			</div>
			<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '我的特权'){ }}
					<?php if($is_open_privilege==1){?>
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '我的导师'){ }}
					<?php if($is_myteacher==1){?>
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '我的团队'){ }}
					<?php if( $status > 0 ){?>
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '累积收益'){ }}
					<?php if($isOpenreward && $status > 0){?>
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '二维码'){ }}
					<?php if( $is_qr_code==1 &&  $status > 0 ){?>
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '我的微店'){ }}
					<?php if( $status > 0 && $is_microshop > 0 ){?><!--推广员才显示--> 
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '我的店铺'){ }}
					<?php if( $isAgent == 3 ){?><!--供应商才显示-->
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '社区微店'){ }}
					<?php if($is_Openretail == 1 && $city_supply_id>0){ //渠道开启社区代理并且用户成为社区代理?>
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '订货系统'){ }}
					<?php if($is_open_orderingretail >0 && $is_proxy>0 && $or_id > 0){ ?>
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == 'F2C店'){ }}
					<?php if( $status>0 && $f2c_account_id > 0 && $isopen_f == true && $is_f2c>0){ ?>
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '奖励报表'){ }}
					<?php if( $is_shareholder_bonus_reward == 1 && $is_consume > 0 ){ ?>
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '我的赠送'){ }}
					<?php  if($is_cashback==1){?>
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '推广排行榜'){ }}
					<?php if( $promoter_id > 0 && $is_open_promoter_ranking ){ ?>
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '授权证书'){ }}
					<?php if( $is_certificate == 1 and $promoter_id > 0){ ?>
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '头部引导'){ }}
					<?php if( $diy_content_id > 0){ ?>
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '外卖配送'){ }}
					<?php if($courier_id > 0) { ?>
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '安装预约'){ }}
					<?php 
					$sql = "select `isOpenInstall` from `weixin_commonshops` where `isvalid` = true and `customer_id` = $customer_id limit 1";
					$result = _mysql_query($sql);
					$row = mysql_fetch_array($result);
					$isOpenInstall = $row['isOpenInstall'];
					if($isOpenInstall == 1)
					{
					?>
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '修改邀请人'){ }}
					<?php if( $is_modify_up ==1 and $has_change == 0){ ?>
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php } ?>
					{{ }else if(it.content.dataset[i].select_value == '我的佣金'){ }}
					<?php if( $is_my_commission == 1 && $promoter_id > 0){ ?>
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php } ?>
					<?php 
						//自定义功能
                        $imgurl ='';
						while ($row_c = mysql_fetch_object($result_custom)) {
							$cs_id = $row_c->id;
							$subscribe_id = $row_c->subscribe_id;
							$need_score = $row_c->need_score;
							$imgurl =$row_c->imgurl;                        
							if($imgurl == '' ){

								$imgurl='/weixinpl/mshop/images/info_image/function.png';
							}                       
							$imgurl = $new_baseurl.$imgurl;
							$query = "SELECT id,title,website_url,coupon_id FROM weixin_subscribes where  id=".$subscribe_id;
							$result = _mysql_query($query) or die('Query failed: ' . mysql_error());
							$website_url="";
							$title="";
							while ($row = mysql_fetch_object($result)) {
								$website_url = $row->website_url;
								$title = $row->title;
								$coupon_id = $row->coupon_id;
							}
							if($coupon_id>0){
								continue;
							}
							$pos = strpos($website_url,"?"); 
							if($pos>0){
								$website_url = $website_url."&C_id=".$customer_id."&fromuser=".$weixin_fromuser;
							}else{
								$website_url = $website_url."?C_id=".$customer_id."&fromuser=".$weixin_fromuser;
							}
							$mppos= strstr($title,"{weixin_title}");
							if(!empty($mppos)){
								$title = str_replace("{weixin_title}",$weixin_name,$title);
							}
								$mppos= strstr($title,"{weixin_parent_title}");
							if(!empty($mppos) and $parent_id>0){
								$query="select weixin_name from weixin_users where  isvalid=true and id=".$parent_id." limit 0,1";
								$result = _mysql_query($query) or die('Query failed: ' . mysql_error());
								$parent_weixin_name="";
								while ($row = mysql_fetch_object($result)) {
									$parent_weixin_name = $row->weixin_name;
								}
									$title = str_replace("{weixin_parent_title}",$parent_weixin_name,$title);
							}
					?>
					{{ }else if(it.content.dataset[i].select_value == '<?php echo $title;?>'){ }}
					<div class="div-row" onclick="goPage("<?php echo $website_url?>"">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					<?php }?>
					{{ }else{ }}
					<div class="div-row" onclick="viewOthers('{{=it.content.dataset[i].select_value}}')">
						<div class="img">
							<img src="{{=it.content.dataset[i].pic}}">
						</div>
						<p style="color:{{=it.content.dataset[i].color}}">{{=it.content.dataset[i].title}}</p>
					</div> 
					{{ } }}
				
				{{ } }}
			{{??}}
		{{?}}
		</div>
		</script>
		<!--功能模块-->

		<!--分割线-->
		<script type="dot-template" id="type_con_7">
		<div class="con_display" {{? it.content.padding}}style="padding-top:{{= it.content.padding}}px;padding-bottom:{{= it.content.padding}}px"{{?}}>
			<div class="members_con">
				{{ sel_linktype = 0;sel_linkval=""; console.log(it.content.dataset[0].select_value); }}
				{{? it.content.dataset[0].select_value}}
					{{	selv=it.content.dataset[0].select_value.split("_");
						sel_linktype=selv[0];
						sel_linkval =selv[1];
					}}
				{{?}}
				{{? sel_linktype==1 || sel_linktype==2 || sel_linktype==4 }}
					{{ if(sel_linkval == '店铺龙虎榜'){ }}
					<?php if( $openbillboard == 1 && $promoter_id > 0){ ?>
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == '我的旅游卡'){ }}
					<?php if($is_travel_card==1&&$is_travelcard==1){?>
						<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == '旅游卡办卡首页'){ }}
					<?php if($is_travel_card==1&&$is_travelcard==1){?>
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == '我的慈善'){ }}
					<?php if( $is_charitable==1 ) { ?>
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == '我的特权'){ }}
					<?php if($is_open_privilege==1){?>
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == '我的导师'){ }}
					<?php if($is_myteacher==1){?>
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == '我的团队'){ }}
					<?php if( $status > 0 ){?>
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == '累积收益'){ }}
					<?php if($isOpenreward && $status > 0){?>
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == '二维码'){ }}
					<?php if( $is_qr_code==1 &&  $status > 0 ){?>
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == '我的微店'){ }}
					<?php if( $status > 0 && $is_microshop > 0 ){?><!--推广员才显示--> 
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == '我的店铺'){ }}
					<?php if( $isAgent == 3 ){?><!--供应商才显示-->
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == '社区微店'){ }}
					<?php if($is_Openretail == 1 && $city_supply_id>0){ //渠道开启社区代理并且用户成为社区代理?>
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == '订货系统'){ }}
					<?php if($is_open_orderingretail >0 && $is_proxy>0 && $or_id > 0){ ?>
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == 'F2C店'){ }}
					<?php if( $status>0 && $f2c_account_id > 0 && $isopen_f == true && $is_f2c>0){ ?>
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == '奖励报表'){ }}
					<?php if( $is_shareholder_bonus_reward == 1 && $is_consume > 0 ){ ?>
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == '我的赠送'){ }}
					<?php  if($is_cashback==1){?>
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == '推广排行榜'){ }}
					<?php if( $promoter_id > 0 && $is_open_promoter_ranking ){ ?>
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == '授权证书'){ }}
					<?php if( $is_certificate == 1 and $promoter_id > 0){ ?>
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == '头部引导'){ }}
					<?php if( $diy_content_id > 0){ ?>
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == '外卖配送'){ }}
					<?php if($courier_id > 0) { ?>
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == '安装预约'){ }}
					<?php 
					$sql = "select `isOpenInstall` from `weixin_commonshops` where `isvalid` = true and `customer_id` = $customer_id limit 1";
					$result = _mysql_query($sql);
					$row = mysql_fetch_array($result);
					$isOpenInstall = $row['isOpenInstall'];
					if($isOpenInstall == 1)
					{
					?>
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == '修改邀请人'){ }}
					<?php if( $is_modify_up ==1 and $has_change == 0){ ?>
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>
					{{ }else if(sel_linkval == '我的佣金'){ }}
					<?php if( $is_my_commission == 1 && $promoter_id > 0){ ?>
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					<?php } ?>

					{{ }else{ }}
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOthers('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					{{ } }}

				{{?? sel_linktype==3 }}
					<?php 
						//自定义功能
                        $imgurl ='';
					$result_custom = _mysql_query($query_custom) or die('/mshop/web/view/personal_center/personal_center.html Query failed1808: ' . mysql_error());
                    while ($row_c = mysql_fetch_object($result_custom)) {
                        $cs_id = $row_c->id;
                        $subscribe_id = $row_c->subscribe_id;
                        $need_score = $row_c->need_score;
                        $imgurl =$row_c->imgurl;                        
                        if($imgurl == '' ){

                            $imgurl='/weixinpl/mshop/images/info_image/function.png';
                        }                       
                        $imgurl = $new_baseurl.$imgurl;
                        $query = "SELECT id,title,website_url,coupon_id FROM weixin_subscribes where  id=".$subscribe_id;
                        $result = _mysql_query($query) or die('Query failed: ' . mysql_error());
                        $website_url="";
                        $title="";
                        while ($row = mysql_fetch_object($result)) {
                            $website_url = $row->website_url;
                            $title = $row->title;
                            $coupon_id = $row->coupon_id;
                        }
						if($coupon_id>0){
							continue;
						}
                        $pos = strpos($website_url,"?"); 
                        if($pos>0){
                            $website_url = $website_url."&C_id=".$customer_id."&fromuser=".$weixin_fromuser;
                        }else{
                            $website_url = $website_url."?C_id=".$customer_id."&fromuser=".$weixin_fromuser;
                        }
                        $mppos= strstr($title,"{weixin_title}");
                        if(!empty($mppos)){
                            $title = str_replace("{weixin_title}",$weixin_name,$title);
                        }
                            $mppos= strstr($title,"{weixin_parent_title}");
                        if(!empty($mppos) and $parent_id>0){
                            $query="select weixin_name from weixin_users where  isvalid=true and id=".$parent_id." limit 0,1";
                            $result = _mysql_query($query) or die('Query failed: ' . mysql_error());
                            $parent_weixin_name="";
                            while ($row = mysql_fetch_object($result)) {
                                $parent_weixin_name = $row->weixin_name;
                            }
                                $title = str_replace("{weixin_parent_title}",$parent_weixin_name,$title);
                        }
                ?>
					{{ if(sel_linkval == '<?php echo $title;?>'){ }}
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="goPage('<?php echo $website_url?>')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
					{{ } }}
                <?php } ?>
				
				{{?? sel_linktype==5 }}
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewRecord('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
				{{?? sel_linktype==6 }}
					<a title="{{=it.content.dataset[0].title}}" href="javascript:;" onclick="viewOrders('{{=sel_linkval}}')" ><img src="{{=it.content.dataset[0].pic}}" width="100%" /></a>
				{{?}}
			</div>
		</div>
		</script> 
		<!--分割线-->


		<!--滚动公告栏-->
		<script type="text/j-template" id="type_con_13">
		{{? it.content.rolling_direction==1}}
			{{
				$(function(){
					$('#marquee{{= it.id}}').kxbdSuperMarquee({
						isMarquee:true,
						direction:'left',
						isEqual:false,
						scrollDelay:it.content.rolling_speed
					});
				});
			}}
		{{?? it.content.rolling_direction==2}}
			{{
				$(function(){
					$('#marquee{{= it.id}}').kxbdSuperMarquee({
						direction:'up',
						isEqual:false,
						distance:40,
						time:it.content.show_time_limit
					});
				});
			}}
		{{?}}
		{{

			 var wH=parseInt($(window).width());

		}}
		<div class="con_display" {{? it.content.padding}}style="padding:{{= it.content.padding}}px 0;"{{?}}>
		<div style="height:40px;line-height:40px;background-color:#FFF;padding-left:34px;background-image:url({{? it.content.icon_pic== undefined || it.content.icon_pic == ''}}/weixinpl/back_newshops/Base/personalization/personal_center/images/horn.png {{??}}{{=it.content.icon_pic}}{{?}});background-repeat:no-repeat;background-position:10px 9px;background-size:20px 20px;">
			<div id="marquee{{= it.id}}" class="marquee">
				<ul>
				{{for (var j=0,k=it.content.dataset.length;j<k;j++) { }}
					<li style="{{? it.content.rolling_direction==1}}display:inline-block;width:{{= it.content.dataset[j].title.length*16+wH-34}}px;{{?}}color:#ffaf74;"><a href="{{= it.content.dataset[j].link}}" style="color:#000000;font-size:16px;">{{= it.content.dataset[j].title}}</a></li>
				{{ } }}
				</ul>
			</div>
		</div>

		</div>
		</script>

		<!--滚动公告栏-->

		<!-- 个人中心头部 -->
		 <script type="text/j-template" id="type_con_17">
		<div class="con_display" {{? it.content.padding}}style="padding:{{= it.content.padding}}px 0;"{{?}}> 
			  {{? it.content.css_type==1}}
			  <div class="top-main01 back-img skin-bg" style="background-image:url({{=it.content.icon_pic}}) !important">
					<!-- <span class="top-set" onclick="viewMyInfo()" >设置</span> -->
					<span class="top-set" onclick="viewMyInfo()" >设置</span>
					<div class="top-imgBox">
						<img class="am-img-thumbnail" style="border-radius: 50%;" src="<?php echo $weixin_headimgurl ?>">
					</div>
					<p class="top-userName"><?php echo $weixin_name; ?></p>
					<div class="top-info">
						<p>ID:<?php echo $user_id; ?></p>
						<?php if(!empty($parent_name) && $is_open_inviter == 1){ 
							if( $is_indication_range==0 ){
									echo "<p>推荐人：".$parent_name."</p>"; 
							}else{
								if( $status > 0 ){ 
									echo "<p>推荐人：".$parent_name."</p>"; 
								}
							}
						} ?>
					</div>
                    <div class="id-area01">
							<?php 
								if( $status>0 && $is_consume > 0){
									if( $is_shareholder>0 ){				
							?>
								<img src="/weixinpl/mshop/images/info_image/wode_icon2.png"></img><span><?php echo $pro_name;?></span>
							<?php 	}else{?>
								<img src="/weixinpl/mshop/images/info_image/wode_icon2.png"></img><span><?php echo $a_name;?></span>
							<?php 	} ?>
							<?php } ?>
							<?php if( $status > 0 ){?>
								<img src="/weixinpl/mshop/images/info_image/wode_icon4.png"></img><span><?php echo $exp_name;?></span>
							<?php }else{?>
								<?php if($is_open_extension_agent==1){?>
								<img src="/weixinpl/mshop/images/info_image/wode_icon4.png"></img><span>您还没成为<?php echo $exp_name;?></span>
								<?php }?>
							<?php }?>
							<?php if( $status > 0 && $isAgent > 0 ){?>
								<img src="/weixinpl/mshop/images/info_image/wode_icon<?php echo $AgentNum; ?>.png" style="width:16px;height:16px;"></img><span ><?php echo $Agent_name;?></span>
							 <?php }?>
                    </div>
				   </div> 
				  {{?? it.content.css_type==2}}
					<div class="top-main02 back-img skin-bg" style="background-image:url({{=it.content.icon_pic}}) !important ">
                     <span class="top-set" onclick="viewMyInfo()" >设置</span>
					<div class="top-imgBox02">
						<img class="am-img-thumbnail" src="<?php echo $weixin_headimgurl ?>">
					</div>
					<div class="top-info02">
						<p class="top-name02"><?php echo $weixin_name; ?></p>
						<p>ID：<?php echo $user_id; ?>&nbsp;&nbsp;<?php if(!empty($parent_name)){ echo "推荐人：".$parent_name; } ?></p>
						<p>
							<?php 
								$identity_str = "";	//我的身份
								if( $status>0 && $is_consume > 0){
									if( $is_shareholder>0 ){
										$identity_str .= $pro_name."|";
									}else{
										$identity_str .= $a_name."|";
									}
								}
								if( $status > 0 ){
									$identity_str .= $exp_name."|";
								}else{
									if($is_open_extension_agent==1){
										$identity_str .= "您还没成为".$exp_name;
									}
								}
								if( $status > 0 && $isAgent > 0 ){
									$identity_str .= $Agent_name."|";
								}
								echo rtrim($identity_str,"|");
							?>
						
						</p>
					</div>
					<!-- <image class="arrow-right" src="/weixinpl/back_newshops/Base/personalization/personal_center/images/u322.png" onclick="viewMyInfo()" ></image> -->
				</div>
				  {{?? it.content.css_type==3}}
				  <div class="top-main03 back-img skin-bg" style="background-image:url({{=it.content.icon_pic}}) !important">
					<div class="top-mainInner">
						<span class="top-set" onclick="viewMyInfo()" >设置</span>
					<div class="top-imgBox">
						<img class="am-img-thumbnail" style="border-radius: 50%;" src="<?php echo $weixin_headimgurl ?>">
					</div>
					<div class="top-info03">
						<p class="top-name02"><?php echo $weixin_name; ?></p>
						<p>ID：<?php echo $user_id; ?></p>
						<?php if(!empty($parent_name)){ echo "<p>推荐人：".$parent_name."</p>"; } ?>
					</div>
					</div>
					<div class="divide"></div>
					<div class="top-status">
						<?php 
							$identity_str = "";	//我的身份
							if( $status>0 && $is_consume > 0){
								if( $is_shareholder>0 ){
									$identity_str .= $pro_name."|";
								}else{
									$identity_str .= $a_name."|";
								}
							}
							if( $status > 0 ){
								$identity_str .= $exp_name."|";
							}else{
								if($is_open_extension_agent==1){
									$identity_str .= "您还没成为".$exp_name;
								}
							}
							if( $status > 0 && $isAgent > 0 ){
								$identity_str .= $Agent_name."|";
							}
							
							if(!empty($identity_str)){
								echo "我的身份：".rtrim($identity_str,"|");
							}
						?>
					</div>
				</div>
				  {{?? it.content.css_type==4}}
				  <div class="top-main04 back-img skin-bg" style="background-image:url({{=it.content.icon_pic}}) !important">
					<span class="top-set" onclick="viewMyInfo()" >设置</span>
					<div class="top-imgBox">
						<img class="am-img-thumbnail" style="border-radius: 50%;" src="<?php echo $weixin_headimgurl ?>">
					</div>
					<div class="name04">
						<p class="top-userName04"><?php echo $weixin_name; ?></p>
					</div>
					<div class="top-info04">
						<p>ID：<?php echo $user_id; ?></p>
						<?php if(!empty($parent_name)){ echo "<p>推荐人：".$parent_name."</p>"; } ?>
					</div>
					<div class="top-status04">
						<?php 
							$identity_str = "";	//我的身份
							if( $status>0 && $is_consume > 0){
								if( $is_shareholder>0 ){
									$identity_str .= $pro_name."|";
								}else{
									$identity_str .= $a_name."|";
								}
							}
							if( $status > 0 ){
								$identity_str .= $exp_name."|";
							}else{
								if($is_open_extension_agent==1){
									$identity_str .= "您还没成为".$exp_name;
								}
							}
							if( $status > 0 && $isAgent > 0 ){
								$identity_str .= $Agent_name."|";
							}
							
							if(!empty($identity_str)){
								echo "我的身份：".rtrim($identity_str,"|");
							}
						?>
					</div>
				</div>
				{{?? it.content.css_type==5}}
				<div class="top-main05" style="background-image:url({{=it.content.icon_pic}}) !important">
					<div class="topimg {{? it.content.icon_pic == undefined || it.content.icon_pic == ''}}default5{{?}}">
						<div class="top-set05" >
							<p onclick="viewMyInfo()" style="font-size: 13px;color: #FFF;">设置</p>
						</div>
						<div class="status05">
							<?php 
								if( $status>0 && $is_consume > 0){
									if( $is_shareholder>0 ){				
							?>
								<div class="mem" ><img src="/weixinpl/mshop/images/info_image/wode_icon2.png"></img><span><?php echo $pro_name;?></span></div>
							<?php 	}else{?>
								<div class="mem" ><img src="/weixinpl/mshop/images/info_image/wode_icon2.png"></img><span><?php echo $a_name;?></span></div>
							<?php 	} ?>
							<?php } ?>
							<?php if( $status > 0 ){?>
								<div class="mem" ><img src="/weixinpl/mshop/images/info_image/wode_icon4.png"></img><span><?php echo $exp_name;?></span></div>
							<?php }else{?>
								<?php if($is_open_extension_agent==1){?>
								<div class="mem" ><img src="/weixinpl/mshop/images/info_image/wode_icon4.png"></img><span>您还没成为<?php echo $exp_name;?></span></div>
								<?php }?>
							<?php }?>
							<?php if( $status > 0 && $isAgent > 0 ){?>

								<div class="mem" ><img src="/weixinpl/mshop/images/info_image/wode_icon<?php echo $AgentNum; ?>.png" style="width:16px;height:16px;"></img><span ><?php echo $Agent_name;?></span></div>
							 <?php }?>
						</div>
						<div class="status05">
							<span>ID:<?php echo $user_id; ?></span>
							<?php if(!empty($parent_name)){ echo '<span style="margin-left: 8px;">推荐人:'.$parent_name.'</span>'; } ?>
						</div>
					</div>
					<div class="head-img05">
						<div class="head-content">
							<img class="am-img-thumbnail" style="border-radius: 50%;" src="<?php echo $weixin_headimgurl ?>">
						</div>
					</div>
					<div class="name05">
						<?php echo $weixin_name; ?>
					</div>
				</div>
				  {{?}}
				</div>
		</script>
		<!-- 个人中心头部-->
		  <?php if($sp_onoff == 1 && $s_onoff == 1){ ?>
			<div class="sign" id="signfubiao"><div class="signbox"><p id="now_sign" class="rightnow skin-color">立即签到</p><span  class="rightnowright skin-color">》</span><span class="kongbairightnow"></span></div></div>
		 <?php } ?>
	</div>
	<!-- 自定义模板 模块 END -->
	 
	 
	 
	 

    <!-- 签到弹窗 -->
		<div class="sign-shade"></div>
        <div class="sign-alert">
            <div class="sign-alert-top"></div>
            <div class="sign-alert-text residue-box">
                <p>恭喜，签到成功！</p>
            </div>
            <div class="sign-alert-btn">确定</div>
        </div>  
      <!-- 签到弹窗 -->    
</body>	
<script type="text/javascript" src="/weixinpl/mshop/assets/js/jquery.min.js"></script>  

<!-- 自定义模板 START -->	
<script type="text/javascript" src="/weixinpl/back_newshops/Base/personalization/personal_center/js/doT.min.js"></script>
<script type="text/javascript" src="/weixinpl/back_newshops/Base/personalization/personal_center/js/custom.core.js"></script>
<script type="text/javascript" src="/weixinpl/back_newshops/Base/personalization/personal_center/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="/weixinpl/back_newshops/Base/personalization/personal_center/js/layer/layer.js"></script>
<script type="text/javascript" src="/weixinpl/back_newshops/Base/personalization/personal_center/js/jquery.touchSlider.js"></script>
<script type="text/javascript" src="/weixinpl/back_newshops/Base/personalization/personal_center/js/slider.js"></script>
<script type="text/javascript" src="/weixinpl/back_newshops/Base/personalization/personal_center/js/Marquee.js"></script>

<script charset="utf-8" src="/weixinpl/common/js/jquery.jsonp-2.2.0.js"></script>

<!--选择地区插件-->
<!--<script src="//malsup.github.io/jquery.form.js"></script>-->
<script>
	var action ="<?php echo $action;?>";
    var customer_id =<?php echo $customer_id;?>;
    var diy_temid   =<?php echo $diy_temid;?>;
	var customer_id_en = '<?php echo $customer_id_en;?>';
$(function() {  
    var customarr   =<?php echo json_encode($customarr,JSON_UNESCAPED_UNICODE);?>;//模块内容
    typearr     =<?php echo json_encode($type_arr);?>; //产品分类  
    imginfo  =<?php echo json_encode($imginfo);?>;//图文消息数组
    couponinfo  =<?php echo json_encode($couponinfo);?>;//优惠券数组
    cityfood       =<?php echo json_encode($cityfood);?>;//城市商圈美食
    is_coupon       =<?php echo json_encode($is_coupon);?>;//城市商圈美食
    cityktv       =<?php echo json_encode($cityktv);?>;//城市商圈ktv
    cityhotel       =<?php echo json_encode($cityhotel);?>;//城市商圈酒店
    cityshop       =<?php echo json_encode($cityshop);?>;//城市商圈线下商城
    fixedlink   =<?php echo json_encode($fixedlink);?>;//固定连接数组  
	cityarea_industry       =<?php echo json_encode($cityarea_industry);?>;//商圈-行业
	brandarr     =<?php echo json_encode($brandarr);?>; //品牌供应商
	areaData = <?php echo json_encode($areaData);?>; //省、市
	room_link = <?php echo json_encode($room_link);?>; //微视直播系统
	template_link = <?php echo json_encode($template_link);?>; //已启用的模板
	cityarea_shop_protype_arr = <?php echo json_encode($cityarea_shop_protype_arr);?>; //线下商城产品分类
	cityarea_shop_type_arr = <?php echo json_encode($cityarea_shop_type_arr);?>; //线下商城店铺分类
	cityarea_shop_arr = <?php echo json_encode($cityarea_shop_arr);?>; //线下商城店铺
	oldstr = $('#con_15_placeholder').val(); //已启用的模板
	console.log(1);
	 console.log(customarr);
	console.log(2);
    package_lists   =<?php echo json_encode($package_lists);?>;//固定连接数组    
	
    var new_baseurl   ="<?php echo $new_baseurl;?>";//拼接链接
    var test = eval(customarr);//   JSON转化为数组 
    
    var titleArr=new Array();
    var imgArr=new Array();
    var select_value_arr=new Array();
    var detail_value_arr=new Array();
    var detail_name_arr=new Array();
	var color_arr=new Array();
	var color1_arr=new Array();
	var sel_link_type_arr=new Array();
	var link_arr=new Array();
 //读取数据库数组生成页面
    for(i=0;i<test.length;i++)
    {   
		if ( test[i] == '' ) {
			continue;
		}
        var module={
                id:null,//模块ID 
                type:null,//模块类型
                sort:null, //排序
                content:null,//模块内容
                fixed_link:null,//固定
                type_arr:null,//产品分类
                img_info:null,//图文
                coupon_info:null,//优惠券
                city_food:null,//城市商圈美食
                is_coupon:null,//优惠券
                city_ktv:null,//城市商圈ktv
                city_hotel:null,//城市商圈酒店
                city_shop:null,//城市商圈线下商城
				is_cityarea_caterer:null,//城市商圈（美食）
				is_cityarea_ktv:null,//城市商圈（ktv）
				is_cityarea_hotel:null,//城市商圈（酒店）
				is_cityarea_shop:null,//城市商圈（线下商城）
				is_cityarea:null,//城市商圈，渠道开关
				cityarea_industry:null,//商圈-行业
				brand_arr:null,//品牌供应商
				areaData:null,//省、市
				room_link:null,//微视直播系统
				template_link:null,//已启用的模板
				cityarea_shop_protype_arr:null,//线下商城产品分类
				cityarea_shop_type_arr:null,//线下商城店铺分类
				cityarea_shop_arr:null//线下商城店铺

          };
          module.content={
                css_type:null,
                placeholder:null,
                padding:null,
                margin:null,
                pro_title_show:null,
                pro_title_twoline:null,
                pro_numshow:null,
                show_sale:null,
                foot_position:null,
                video_link:null,
				bg_color:null,
				color:null,
				rolling_direction:null,
				rolling_speed:null,
				show_time_limit:null,
				city_name:null,
				location_p:null,
                dataset:[],
                shop_type:null,//商城类型
				sort_type:null,//排序类型
				divide_type:null//划分类型
                };

            if(test[i].title){
                 titleArr=test[i].title.split("|");
            }
           if(test[i].imgurl){
                 imgArr=test[i].imgurl.split("|");
            }
            if(test[i].select_value){
                 select_value_arr=test[i].select_value.split("|");
            }
            if(test[i].detail_value){
                 detail_value_arr=test[i].detail_value.split("|");
            }
            if(test[i].detail_name){
                 detail_name_arr=test[i].detail_name.split("|");
            }
			if(test[i].start_time){
                 start_time_arr=test[i].start_time.split("|");
            }
			if(test[i].end_time){
                 end_time_arr=test[i].end_time.split("|");
            }
			if(test[i].color){
                 color_arr=test[i].color.split("|");
            }
			if(test[i].color1){
                 color1_arr=test[i].color1.split("|");
            }
			if(test[i].link){
                 link_arr=test[i].link.split("|");
            }
			if(test[i].sel_link_type){
                 sel_link_type_arr=test[i].sel_link_type.split("|");
            }
			
         module.id=test[i].diy_tem_contid;
         module.type=test[i].type;
         module.fixed_link=fixedlink;
         module.package_lists=package_lists;
         module.content.css_type=test[i].css_type;
         module.content.placeholder=test[i].placeholder;
         module.content.padding=test[i].mod_padding;
         module.content.margin=test[i].mod_img_padding;
         module.content.pro_title_show=test[i].pro_title_show;
         module.content.pro_title_twoline=test[i].pro_title_twoline;
         module.content.pro_numshow=test[i].pro_numshow;
         module.content.show_sale=test[i].show_sale;
         module.content.foot_position=test[i].foot_position;
         module.content.video_link=test[i].video_link;
		 module.content.bg_color=test[i].bg_color;
		 module.content.color=test[i].color;
		 module.content.rolling_direction=test[i].rolling_direction;
		 module.content.rolling_speed=test[i].rolling_speed;
		 module.content.show_time_limit=test[i].show_time_limit;
		 module.content.city_name=test[i].city_name;
		 module.content.location_p=test[i].province;
		 module.content.shop_type=test[i].shop_type;
		 module.content.sort_type=test[i].sort_type;
		 module.content.divide_type=test[i].divide_type;
		 module.content.icon_pic=test[i].icon_pic;
		 module.content.li_title=test[i].li_title;
		 module.content.data_num=test[i].data_num;
		 if(module.type==21){
			module.content.select_value=select_value_arr[0];
		 }
		 // console.log(titleArr.length-1,0<titleArr.length-1)
		
	//	console.log(titleArr);
         for(j=0;j<titleArr.length-1;j++)
           {      
            var newdata={
                    mod_sort:null,
                    link:"",
                    title:"",
                    color:"",
                    pic:"",
                    foreign_id:'-1',
                    detail_id:'',
                    link_type:'',
                    select_value:"",
                    detail_value:'',
                    detail_name:"",
					start_time:"",
					end_time:'',
					sel_link_type:1
                };
            module.content.dataset.push(newdata);
            module.content.dataset[j].title=titleArr[j];
            module.content.dataset[j].select_value=select_value_arr[j];
            module.content.dataset[j].detail_value=detail_value_arr[j];
            module.content.dataset[j].detail_name=detail_name_arr[j];
			module.content.dataset[j].color=color_arr[j];
			module.content.dataset[j].color1=color1_arr[j];
			module.content.dataset[j].sel_link_type=sel_link_type_arr[j];
			module.content.dataset[j].text_length=titleArr[j].length;
			module.content.dataset[j].link=link_arr[j];

			if(module.type == 12){
				module.content.dataset[j].start_time=start_time_arr[j];
				module.content.dataset[j].end_time=end_time_arr[j];
			}
			
            var picUrl=new_baseurl+imgArr[j];
            if(picUrl.indexOf("weixinpl")>0){ //判断图片路径
                module.content.dataset[j].pic=picUrl;
            }
            else{
            	if(imgArr[j]!=""){
            		//var defUrl=new_baseurl+"/weixinpl/common_shop/common/custom_temp/"+imgArr[j];
            		var defUrl=imgArr[j];
                	module.content.dataset[j].pic=defUrl;
            	}
                
            }
        }	
	//	console.log(module);
		custom_build(module);
		var select_value_arr=[];
		var detail_value_arr=[];
		var detail_name_arr=[];
    }

});
function num_check(obj){
	var val = $(obj).val();
	if(isNaN(val) || val < 0){
		$(obj).val(1);
	}
}


function viewOrders(type){
	//console.log(type);
	switch(type){
		case "商城订单": //更多
			location.href="/weixinpl/mshop/orderlist.php?customer_id="+customer_id_en+"&currtype=1";
		break;	
		case "大礼包订单":			
			location.href = '/weixinpl/mshop/order_packages_list.php?customer_id=<?php echo $customer_id_en; ?>';
		break;
		case "票务订单": //更多
			var ua = navigator.userAgent.toLowerCase();
			var isWeixin = ua.indexOf('micromessenger') != -1;
			if( !isWeixin ){
				showAlertMsg ("提示：",'您好，请在微信端打开此页面',"知道了");
			}else{
				location.href="http://"+appid+".open.justravel.cn/flight/orderList";
			}
		break;
			case "外卖订单": //外卖
			location.href="/weixinpl/mshop/cityarea/orderlist_caterer_package.php?customer_id="+customer_id_en+"&user_id=<?php echo passport_encrypt((string)$user_id) ?>&cityarea_type=1";
			break;
		case "订餐订单": //美食
			location.href="/weixinpl/mshop/cityarea/orderlist_caterer_package.php?customer_id="+customer_id_en+"&user_id=<?php echo passport_encrypt((string)$user_id) ?>&cityarea_type=2";
			break;	
		case "线下商城-自提订单": //线下商城-自提订单
			location.href="/weixinpl/city_area/shop/order_list.php?customer_id="+customer_id_en+"&currtype=1";
			break;
		case "线下商城-配送订单": //线下商城-配送订单
			location.href="/weixinpl/city_area/shop/order_list_take.php?customer_id="+customer_id_en+"&currtype=11";
			break;	
		case "线下商城-社区订单": //线下商城-社区订单
			location.href="/weixinpl/city_area/shop/order_list_community.php?customer_id="+customer_id_en+"&currtype=-1";	
			break;
		case "酒店订单": //酒店
			location.href="/weixinpl/mshop/cityarea/orderlist_hotel_package.php?customer_id="+customer_id_en+"&user_id=<?php echo passport_encrypt((string)$user_id) ?>&currtype=1";
			break;
		case "KTV订单":      //KTV
			location.href="/weixinpl/mshop/cityarea/orderlist_ktv_package.php?customer_id="+customer_id_en+"&user_id=<?php echo passport_encrypt((string)$user_id) ?>&currtype=1";
			break;			
		case "到店付订单":      //到店付	
			location.href="/weixinpl/mshop/cityarea/orderlist_pay.php?customer_id="+customer_id_en+"&user_id=<?php echo passport_encrypt((string)$user_id) ?>&currtype=1";	
			break;
		case "线下收银订单":   //线下收银
			var url="/weixinpl/back_nowpaySystem/cashplatform/cust_olist.php?user_id=<?php echo $user_id;?>&ord_status=-10";
			location.href=url;
			break;
		case "拼团订单":
			location.href="/weixinpl/mshop/collageActivities/my_collages_record_list_view.php?customer_id="+customer_id_en+"&user_id=<?php echo passport_encrypt((string)$user_id) ?>";
			break;   
		case "金融订单":
			location.href="/weixinpl/city_area/finance2/orderlist_finance.php?status=0&customer_id="+customer_id_en;
			break; 	
		case "教练服务订单":
			location.href="/addons/index.php/coach/Coachorder/coach_order_list?status=0&customer_id="+customer_id_en;
			break;
		case "艺人订单":
			location.href="/weixinpl/yiren/front/web/u_myorder.html?customer_id_en="+customer_id_en;
			break;  			
	}
}

function viewRecord(type){
	//console.log(type);
	switch(type){
		case "零钱":
			location.href ="../../mshop/web/index.php?m=currency&a=index&customer_id="+customer_id_en
			break;
		case "消费总额":
			location.href ="/weixinpl/mshop/my_consumer_money.php?customer_id="+customer_id_en;
			break;
			
		case "会员卡积分":
			var card_member_id 	= '<?php echo $card_member_id ?>';
			var show_card_id 	= '<?php echo $show_card_id ?>'; 
			if( card_member_id ){
				window.location.href ="/weixinpl/mshop/my_card_score_log.php?customer_id="+customer_id_en+"&card_id="+show_card_id;
				// window.location.href = "../card/card_score_record.php?card_id="+show_card_id+"&card_member_id="+card_member_id;
			}else{
				window.location.href = "/weixinpl/card/show_card.php?customer_id="+customer_id_en+"&user_id="+user_id+"&card_id="+show_card_id;
			}
			break;
		case "会员卡余额":
			var card_member_id 	= '<?php echo $card_member_id ?>';
			var show_card_id 	= '<?php echo $show_card_id ?>';
			if( card_member_id ){
				window.location.href = "/weixinpl/card/card_consume.php?card_id="+show_card_id+"&card_member_id="+card_member_id;
			}else{
				window.location.href = "/weixinpl/card/show_card.php?customer_id="+customer_id_en+"&user_id="+user_id+"&card_id="+show_card_id;
			}
			break;
		case "购物币":
			location.href="/weixinpl/mshop/my_currency.php?customer_id="+customer_id_en;
			break;
		case "优惠券":
			location.href="/weixinpl/mshop/my_coupon.php?customer_id="+customer_id_en;
			break;
		case "分享卡":
			location.href="/weixinpl/city_area/shop/myorders.php?customer_id="+customer_id_en;
			break;
		case "红积分":
			location.href="/weixinpl/mshop/my_red_score.php?customer_id="+customer_id_en;
			break;
		case "红包":
			location.href="/weixinpl/mshop/my_hongbao.php?customer_id="+customer_id_en;
			break;
		case "商城积分":
			location.href="<?php echo $ji_url ?>";
			break;
		case "我的足迹":
			location.href="/weixinpl/mshop/my_visit.php?customer_id="+customer_id_en;
			break;
		case "我的收藏":
			location.href="/weixinpl/mshop/my_collect.php?customer_id="+customer_id_en;
			break;
		case "排队奖励":
			location.href="/weixinpl/mshop/queue_order_lists.php?customer_id="+customer_id_en;
			break;
	}
}

function myUpload(callbackfunc) {
	$('#my-confirm').modal({
		relatedTarget: this,
		onConfirm: function(options) {
			callbackfunc("ok");
		},
		onCancel: function() {
			callbackfunc('cancel');
		}
	});
	$('#my-confirm').css('marginTop',0);
}

function clearNoNum(obj){
	//先把非数字的都替换掉，除了数字和.
	obj.value = obj.value.replace(/[^\d.]/g,"");
	//必须保证第一个为数字而不是.
	obj.value = obj.value.replace(/^\./g,"");
	//保证只有出现一个.而没有多个.
	obj.value = obj.value.replace(/\.{2,}/g,".");
	//保证.只出现一次，而不能出现两次以上
	obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
	//只能输入两个小数
	obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3'); 
}
</script>
<!-- 自定义模板 END -->	
  
<script type="text/javascript" src="/weixinpl/mshop/assets/js/amazeui.js"></script>
<script type="text/javascript" src="/weixinpl/mshop/js/global.js?ver=<?php echo JSVER?>"></script>
<script type="text/javascript" src="/weixinpl/mshop/js/loading.js"></script>
<?php if($is_openOrderMessage == 1){ ?>
<script type="text/javascript" src="/weixinpl/mshop/js/order_message.js"></script>
<?php } ?>
<script src="/weixinpl/mshop/js/jquery.ellipsis.js"></script>
<script src="/weixinpl/mshop/js/jquery.ellipsis.unobtrusive.js"></script>
<script type="text/javascript">
$(function(){
	//推广员有效期提示
	var promoter_isvalid_tip = getCookie('promoter_isvalid_tip');
	
	if( promoter_isvalid_tip == 1 ){
		$(".countdown").click();
	}
	
	var my_function = $("#my_function .area-one").length;
	// console.log($("#my_function .area-one"))
	// console.log(my_function)
	if(my_function==0){
		$("#my_function").hide();
	}

	$(".warp_list").slice(5).hide();
	$(".other ul li").slice(4).hide();

	var exp_map_url = "<?php echo $exp_map_url;?>";
	/*if(exp_map_url==''){
		refresh("reflesh");
	}*/
})
	
	function viewOrder(type,uid){  //跳转到对应的订单页面

		switch(type){
			case 'other':
			window.location.href="dingdan.html"; 
			break;
			case 'shop':
			window.location.href="/weixinpl/mshop/orderlist.php?customer_id="+customer_id_en+"&currtype="+uid;      //所有
			break;		
			case 'waimai':
			window.location.href="/weixinpl/mshop/cityarea/orderlist_caterer_package.php?customer_id="+customer_id_en+"&currtype="+uid+"&cityarea_type=1";                  //外卖
			break;	
			case 'meishi':
			window.location.href="/weixinpl/mshop/cityarea/orderlist_caterer_package.php?customer_id="+customer_id_en+"&currtype="+uid+"&cityarea_type=2";                  //订餐
			break;	
			case 'ktv':
			window.location.href="/weixinpl/mshop/cityarea/orderlist_ktv_package.php?customer_id="+customer_id_en+"&currtype="+uid;                                     //KTV
			break;			
			case 'hotel':
			window.location.href="/weixinpl/mshop/cityarea/orderlist_hotel_package.php?customer_id="+customer_id_en+"&currtype="+uid;                                     //酒店
			break;	
			case 'pay':
			window.location.href="/weixinpl/mshop/cityarea/orderlist_pay.php?customer_id="+customer_id_en+"&currtype="+uid;                                   //到店付	
			break;		
			case 'cityshop':
			window.location.href="/weixinpl/city_area/shop/order_list.php?customer_id="+customer_id_en+"&currtype="+uid;                                    //线下商城  
			break;
			case 'cityshop_take':
			window.location.href="/weixinpl/city_area/shop/order_list_take.php?customer_id="+customer_id_en+"&currtype="+uid;                                    //线下商城	
			break;	
			case 'cityshop_community':
			window.location.href="/weixinpl/city_area/shop/order_list_community.php?customer_id="+customer_id_en+"&currtype="+uid;       //线下商城-社区订单
			break;
			case 'nowpayOrder':
			window.location.href="/weixinpl/back_nowpaySystem/cashplatform/my_order.php?s_top="+uid+"&s_nav=1&&customer_id="+customer_id_en;       //线下收银
			break;
			case 'finance':
			window.location.href="/weixinpl/city_area/finance2/orderlist_finance.php?status="+uid+"&customer_id="+customer_id_en;       //线下收银
			break;
			case 'coach':
			window.location.href = "/addons/index.php/coach/Coachorder/coach_order_list?status="+uid;
			break;
			case 'yiren':
				window.location.href = "/weixinpl/yiren/front/web/u_myorder.html?customer_id_en="+customer_id_en;
			break;
			
		}

	}

	//头部过期时间效果
	$(".countdown").click(function(){
		var val=$(".countleft").attr("value");
		
		if(val==1){
			$(".countleft").attr("value",0)
			$(".countdown").animate({"width":"8%"},300)
			$(".countleft").attr("src","./images/vic/right_arrow01.png").css("margin-left","20%")
			val = 0;
		}else{
			$(".countleft").attr("value",1)
			$(".countdown").animate({"width":"125px"},300)
			$(".countleft").attr("src","./images/info_image/count01.png").css("margin-left","5%")
			val = 1;
		}
		
		var curDate = new Date();  
		//当前时间戳  
		var curTamp = curDate.getTime();  
		//当日凌晨的时间戳,减去一毫秒是为了防止后续得到的时间不会达到00:00:00的状态  
		var curWeeHours = new Date(curDate.toLocaleDateString()).getTime() - 1;  
		//当日已经过去的时间（毫秒）  
		var passedTamp = curTamp - curWeeHours;  
		//当日剩余时间  
		var leftTamp = 24 * 60 * 60 * 1000 - passedTamp;  
		var leftTime = new Date();  
		leftTime.setTime(leftTamp + curTamp);  
		//创建cookie  
		document.cookie = "promoter_isvalid_tip=" + val + ";expires=" + leftTime.toGMTString();
	})
	
	/*  
	 *	获取cookies函数   
	 *	@name:cookie名字  
	*/
	function getCookie(name){
		var arr,reg = new RegExp("(^| )"+name+"=([^;]*)(;|$)");
		if( arr = document.cookie.match(reg) ){
			return unescape(arr[2]);
		} else {
			return null;
		}
	}

   var winWidth       = $(window).width();
   var winheight      = $(window).height();
   var qrcode_width   = winWidth*2/3;
   var user_id        = <?php echo $user_id; ?>;
   var user_id_en     = '<?php echo passport_encrypt((string)$user_id) ?>';
   var customer_id    = <?php echo $customer_id; ?>;
   var customer_id_en = '<?php echo $customer_id_en; ?>';
   var tequan_type    = 0; //0:股东，1：区域代理商，2：推广员
   var brand_status   = <?php echo $brand_status;?>;
   var is_microshop   = <?php echo $is_microshop;?>;
   var brand_tips     = "<?php echo $brand_tips;?>";
   var microshop_tips = "<?php echo $microshop_tips;?>";
   var city_supply_id = '<?php echo passport_encrypt((string)$city_supply_id) ?>';//社区代理
   var appid 		  = '<?php echo $appid ?>';// appid
   
   
   

	function viewMyInfo()
	{
        //showAlertMsg("提示：","您好，您的退货信息已经发送给商家。请耐心等待商家审核！","知道了");
        
		window.location.href="/weixinpl/mshop/setting.php?customer_id="+customer_id_en;
	}

	function goPage(url){
		if(url!==''){
			window.location.href=url;
		}
	}

	function myUpload(callbackfunc) {
        $('#my-confirm').modal({
	        relatedTarget: this,
	        onConfirm: function(options) {
                callbackfunc("ok");
	        },
	        onCancel: function() {
	          	callbackfunc('cancel');
	        }
		});
		$('#my-confirm').css('marginTop',0);
	}

	function callbackConfirm_notice(retVal) {
    	alert(retVal);
 	}
	function callbackConfirm(retVal) {
    	alert(retVal);
 	}
	function close(){
		CloseCode();
	}

	function CloseCode(){
		$('.am-dimmer').click();
	}

	/*function refresh(op){
	    if(op == "reflesh"){
			$(".am-modal-dialog").html('<i class="wx_loading_icon"></i>');
		}		
		var customer_id 		= "<?php echo $customer_id;?>";
		var user_id 			= <?php echo $user_id;?>;  
		$.ajax({
			
	        type: "post",
	        url: "../common_shop/common/tc_erweima/tc_erweima.php",
			dataType:'json',
	        data: { 
				customer_id:customer_id,
				user_id:user_id,
				op:op
				
			},
	        success: function (result) {
				console.log(result);
				switch(result.type){
					case 1:
						if(result.exp_map_url){
							$(".am-modal-dialog").html('<img src="'+result.exp_map_url+'">');
						}
						var mh=$(window).height()*0.85;
   	 					$('.am-modal-dialog').find('img').css('maxHeight',mh);
						$('.wx_loading_icon').hide();
					break; 
					default:

					break; 
				} 
				
				
	        }    
    
		});
	}*/


	//表单提交去查询推荐人信息
	function my_parent(){
		var persion_id = "<?php echo $parent_id;?>";
		var customer_id = "<?php echo $customer_id_en;?>";
		var objform = document.createElement('form');
		document.body.appendChild(objform);
		var obj_p = document.createElement("input");
		var obj_c = document.createElement("input");
		obj_p.type = "hidden";
		obj_c.type = "hidden";
		objform.appendChild(obj_p);
		objform.appendChild(obj_c);
		obj_p.value = persion_id;
		obj_p.name = 'persion_id';
		obj_c.value = customer_id;
		obj_c.name = 'customer_id';

		objform.action = 'team_person.php?customer_id'+customer_id_en;
		objform.method = "POST";
		objform.submit();

	}


	$("#wode_dinghuo").click(function(){
		location.href = "/addons/index.php/ordering_retail/Proxy/proxy_login?customer_id="+customer_id_en;
	});
	 var fWidth = $('.area-one').width();
     var tWidth = $('.area-one img').width();
     $('.numTips').css("right",(fWidth/2-tWidth)/2-10+"px");  

     // 签到
     var oldwidth=$("#signfubiao").find(".rightnow").outerWidth();
     $("#signfubiao").click(function () {

     	if($(this).find(".rightnow").width()>0){
     		$(this).find(".rightnow").animate({
	     		"width":0,
	     		"opacity":0
	     	});
     	}else{
     		$(this).find(".rightnow").animate({
	     		"width":oldwidth+5,
	     		"opacity":1
	     	});
     	}
     	
     	$(this).find(".rightnowright").toggleClass("fanzhuan");
     });

    $('.sign-shade,.sign-alert-btn').click(function() {
        $('.sign-shade,.sign-alert').fadeOut();   
    });

    //签到接口
    $("#now_sign").click(function(){
    	var url = '/mshop/web/index.php?m=sign&a=sign&customer_id='+customer_id;
    	$.post(url,{},function(da){
    		if(da.errcode == 0)
    		{
    			// 签到成功弹窗
		    	$('.sign-shade,.sign-alert').fadeIn();
		    	
    		}
    		else
    		{
				// 失败
		    	showAlertMsg ("提示：",da.errmsg,"知道了");
		    }
    	},'json');
    })
    
    //清除积分通知
    $(function(){
    	clearTimesFun();
    });
    function clearTimesFun() {
        var clearTimesData = {
            data:JSON.stringify(
                {'user_id':user_id}
            )
        };
        $.ajax({
            url : "/mshop/web/index.php?m=integral&a=clearIntegralNotice&customer_id="+customer_id,
            type : "POST",
            dataType : "JSON",
            data : clearTimesData,
            async : true,
            success : function(res) {
                if(res.errcode!=0){
                    $(".inform-fixed").fadeOut();
                }else{
                    if(res.data.notice!=""){
                        $(".inform-fixed").fadeIn();
                        $(".inform-fixed").find("p").text(res.data.notice);
                    }else{
                        $(".inform-fixed").fadeOut();
                    }
                }
            },
            error : function(err) {
                // console.log(err); 
            }
        });
    }

    //判断是否已签完
    var sp_onoff = "<?php echo $sp_onoff ?>"; //是否悬浮
    var s_onoff  = "<?php echo $s_onoff ?>"; //是开启签到功能
    if(sp_onoff == 1 && s_onoff == 1)
    {	
    	var sp_ur= "/mshop/web/index.php?m=sign&a=index&customer_id=" + customer_id;
    	var defaultRequestData = {
            data: JSON.stringify({ 'json_out': 1 })
        };
    	$.post(sp_ur,defaultRequestData,function(da){
    		if(da.errcode == 0 && da.data.times == 0 && da.data.sign_today == 1)
    		{
    			$("#now_sign").unbind();
    			$("#now_sign").text('已签完');
    		}		
    	},'json');
    }	
	
	function viewOthers(type){
   	 if(type=='收货地址'){

   	 	window.location.href = "/weixinpl/mshop/my_address.php?customer_id="+customer_id_en+'&a_type=-1';    //有收货地址的情况下	
   	 }else if(type=='我的店铺')//跳转我的店铺
   	 {	
		if(brand_status==0){
			showAlertMsg ("提示：",brand_tips,"知道了");
		}else{
			window.location.href = "/weixinpl/mshop/my_store/my_store.php?customer_id="+customer_id_en+"&supplier_id="+user_id;	
		} 	 	
   	 
   	 }else if(type=='我的微店')//跳转我的微店
   	 {
		if(microshop_tips!=""){
			showAlertMsg ("提示：",microshop_tips,"知道了");
		}else if(is_microshop==0){
			showAlertMsg ("提示：","商家未开通该功能","知道了");
		}else{
			window.location.href = "/weixinpl/mshop/my_microshop/my_microshop.php?customer_id="+customer_id_en;
		}
   	 }else if(type=='二维码')// 显示我的二维码
   	 {  
	    //refresh('check_qr');   //判断临时二维码是否过期
		
   	 	myUpload(callbackConfirm);
   	 	var mh=$(window).height()*0.85;
   	 	$('.am-modal-dialog').find('img').css('maxHeight',mh);
        //showShopQrCode();
   	 }else if(type=='累积收益')//累积收益
   	 {
   	 	window.location.href = "/weixinpl/mshop/my_profit.php?customer_id="+customer_id_en;
   	 }else if(type=='我的资产')
     {
        window.location.href = "/weixinpl/mshop/my_moneybag.php?customer_id="+customer_id_en;
     }else if(type=='我的团队')
     {
        window.location.href = "/weixinpl/mshop/myteam.php?customer_id="+customer_id_en;
     }else if(type=='我的特权')
     {
            window.location.href = "/weixinpl/mshop/my_privilege.php?customer_id="+customer_id_en;
     }else if(type=='大礼包订单')
     {
   			window.location.href = "/weixinpl/mshop/order_packages_list.php?customer_id="+customer_id_en;		
     }else if (type=='我的导师')
     {
            window.location.href = "/weixinpl/mshop/my_teacher.php?customer_id="+customer_id_en;
     }else if (type=='社区微店')//社区代理
     {
            window.location.href = "/weixinpl/city_area/shop/supply_store.php?customer_id="+customer_id_en+"&supply_id="+city_supply_id;
     }else if(type=='F2C店'){
			window.location.href = "/addons/index.php/f2c/index/index/customer_id/"+customer_id_en;
	 }else if(type=='订货系统'){
			window.location.href = "/addons/index.php/ordering_retail/Proxy/proxy_login?customer_id="+customer_id_en;
	 }else if(type=='奖励报表'){
		 window.location.href = "/weixinpl/mshop/my_shop_reward.php?customer_id="+customer_id_en;
	 }else if(type == '签到'){
	 	window.location.href = '/mshop/web/index.php?m=sign&a=index&customer_id='+customer_id_en;
	 }else if(type == '推广排行榜'){
	 	window.location.href = '/weixinpl/mshop/promoter_ranking.php?customer_id=<?php echo $customer_id_en; ?>';
	 }else if(type == '授权证书'){
	 	window.location.href = '/weixinpl/mshop/authorization/authorization.php?customer_id=<?php echo $customer_id_en; ?>';
	 }else if(type == '我的慈善'){
	 	window.location.href = '/weixinpl/common_shop/jiushop/charitable.php?customer_id=<?php echo $customer_id_en; ?>&user_id=<?php echo passport_encrypt((string)$user_id) ?>';
	 }else if(type == '修改邀请人'){
	 	window.location.href = '/weixinpl/common_shop/jiushop/change_relation_user.php?customer_id=<?php echo $customer_id_en; ?>&user_id=<?php echo passport_encrypt((string)$user_id) ?>';
	 }else if(type == '头部引导'){
	 	window.location.href = '/weixinpl/mshop/headguide.php?customer_id=<?php echo $customer_id_en; ?>';
	 }else if(type == '外卖配送'){
	 	window.location.href = '/weixinpl/common_shop/jiushop/order_list_takeaway_courier.php?user_id=<?php echo passport_encrypt((string)$user_id) ?>&customer_id=<?php echo $customer_id_en; ?>&currtype=1';
	 }else if(type == '安装预约'){
	 	window.location.href = '/weixinpl/common_shop/jiushop/order_install/users/book-install.php?user_id=<?php echo passport_encrypt((string)$user_id) ?>&customer_id=<?php echo $customer_id_en; ?>';
	 }else if(type == '我的赠送'){
	 	window.location.href = '/weixinpl/common_shop/jiushop/cashback.php?user_id=<?php echo passport_encrypt((string)$user_id) ?>&customer_id=<?php echo $customer_id_en; ?>';
	 }else if(type == '我的佣金'){
	 	window.location.href = '/weixinpl/common_shop/jiushop/my_reward.php?user_id=<?php echo passport_encrypt((string)$user_id) ?>&customer_id=<?php echo $customer_id_en; ?>; ?>';
	 }else if(type == '店铺龙虎榜'){
	 	window.location.href = '/weixinpl/mshop/longhuban.php?customer_id=<?php echo $customer_id_en; ?>';
	 }
	 else if(type == '我的旅游卡'){
		 window.location.href = '/o2o/web/view/travel/my_travelCard.html?user_id=<?php echo passport_encrypt((string)$user_id) ?>&customer_id=<?php echo $customer_id_en; ?>; ?>';
	 }
     else if(type == '旅游卡办卡首页'){
         window.location.href = '/o2o/web/view/travel/apply_card.html?user_id=<?php echo passport_encrypt((string)$user_id) ?>&customer_id=<?php echo $customer_id_en; ?>; ?>';
     }else if(type == '大礼包'){
	 	window.location.href = '/weixinpl/mshop/package_list.php?customer_id=<?php echo $customer_id_en; ?>';
	 }else if(type == 'VP产品'){
	 	window.location.href = '/weixinpl/mshop/list.php?isvp=1&customer_id=<?php echo $customer_id_en; ?>';
	 }else if(type == '积分专区'){
	 	window.location.href = '/weixinpl/mshop/list.php?isscore=1&customer_id=<?php echo $customer_id_en; ?>';
	 }else if(type == '续费专区'){
	 	window.location.href = '/weixinpl/mshop/promotion_renewal_area/index.php?customer_id=<?php echo $customer_id_en; ?>';
	 }else if(type == '电商直播'){
	 	window.location.href = '/addons/index.php/micro_broadcast/user/index?customer_id=<?php echo $customer_id_en; ?>';
	 }else if(type == '语音直播'){
	 	window.location.href = '/addons/index.php/voice_online/Index/index?customer_id=<?php echo $customer_id_en; ?>';
	 }else if(type == '拼团专区'){
	 	window.location.href = '/weixinpl//mshop/collageActivities/product_list_view.php?op=ordinary2&customer_id=<?php echo $customer_id_en; ?>';
	 }else if(type == '限时抢购'){
	 	window.location.href = '/mshop/web/index.php?m=integral_zone&a=limit_product&customer_id=<?php echo $customer_id_en; ?>';
	 }else if(type == '特权专区'){
	 	window.location.href = '/weixinpl/mshop/list.php?customer_id=<?php echo $customer_id_en; ?>&tid=1200';
	 }else if(type == '艺人服务'){
	 	window.location.href = '/weixinpl/yiren/front/web/index.html?customer_id_en=<?php echo $customer_id_en; ?>';
	 }else if(type == '大转盘'){
	 	window.location.href = "/mshop/web/index.php?m=slyder_adventures&a=index&customer_id="+customer_id_en+"&slyder_id=<?php echo $slyder_id; ?>";
	 }else if(type == '中奖纪录'){
	 	window.location.href = "../../mshop/web/index.php?m=slyder_adventures&a=my_records";
	 }

}
</script>


<?php require($_SERVER['DOCUMENT_ROOT'].'/weixinpl/common/share.php'); ?>
<!--引入侧边栏 start-->
<?php  
require_once($_SERVER['DOCUMENT_ROOT'].'/weixinpl/common/utility_setting_function.php');
$nav_is_publish = check_nav_is_publish("personal_center",$customer_id);
$fun = "personal_center";
$is_publish = check_is_publish(2,$fun,$customer_id);
include_once($_SERVER['DOCUMENT_ROOT'].'/weixinpl/mshop/float.php');
/*判断是否显示底部菜单 start*/
if($is_publish){
	require_once($_SERVER['DOCUMENT_ROOT'].'/weixinpl/mshop/bottom_label.php');
}
/*判断是否显示底部菜单 end*/
?>
<!--引入侧边栏 end-->
<!-- 头部引导 start -->
<?php 
include $_SERVER['DOCUMENT_ROOT'].'/weixinpl/common_shop/jiushop/share.php';
?>
<!-- 头部引导 end -->
<div id='loading' class='loadingPop'style="display: none;"><img src='/weixinpl/mshop/images/loading.gif' style="width:40px;"/><p class=""></p></div>

</html>